Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use RSpec::Mocks with Spinach ? #193

Closed
crisefd opened this issue Jan 9, 2017 · 2 comments
Closed

How can I use RSpec::Mocks with Spinach ? #193

crisefd opened this issue Jan 9, 2017 · 2 comments

Comments

@crisefd
Copy link

crisefd commented Jan 9, 2017

I've been trying to setup my env.rb to include the mocks module, no luck so far. I faced a similar issue when including the matchers, for that I add include 'rspec/expectations' so I tried to add rspec/mocks, but I still get this error when trying to stub/mock a class using instance_double():
undefined method 'instance_double' for #<Spinach::Features::MyStepClass

@pedantic-git
Copy link
Contributor

I just had the same issue so I fixed it up the same way Cucumber does. Check out PR #195!

@oriolgual
Copy link
Member

Thanks @pedantic-git & @crisefd! I just merged #195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants