Skip to content

When use let method in where scope, scope of evaluation is different with actual ExampleGroup #8

@joker1007

Description

@joker1007

Primitive values is basically No Problem.
But side-effective method is not equivalent to with_them,
because with_them create another ExampleGroup instance.
(ex. FactoryGirl.create)

I think that to solve this issue, we need to hook rspec-core, but it is difficult.

proc & instance_eval hack is still necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions