Skip to content

SpecDefinition should return its own reference #17

Closed
@mistresseve666

Description

@mistresseve666

It would be very helpful if SpecDefinition could return a reference to itself. For example:

With Specs.It("should be a good example")
    Set Foo = Bar.FooBarIt()
    VerifyIsAnObject(.Self, Foo)
End With

Private Function VerifyIsAnObject(ByRef SpecsIt As SpecDefinition, ByRef Foo As Bar)

    With SpecsIt
        .Expect(Foo...).ToBe...
    End With

End Function

While I understand RunMatcher exists, you may not want to make your various functions public. RunMatcher also doesn't support the fluent Expect().ToBe() syntax used throughout the rest of our suites.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions