-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add RSpec::Machers support #87
Comments
Oh, you could also make something like reopening the FeatureSteps class and In env.rb:
But I agree this could be added to the default rspec support. |
Similarly, for methods like double() from rspec-mocks to work: Spinach::FeatureSteps.send(:include, RSpec::Mocks::ExampleMethods) Having to do this manually makes "works out of the box with your favourite test framework" is a bit of a stretch. :-) |
I agree with auto-including RSpec if it exists. What do you think @josepjaume @oriolgual ? |
Sure, send a PR and we'll merge it :D |
This was actually solved 9 months ago by @josepjaume, see dccd46f |
Interestingly I still must do |
Which version of Rspec are you using? In your Gemfile, is defined spinach before rspec? |
I'm using rspec (2.14.1) My gemfile reads for development & test: Should I explicity define spinach and put it and spinach-rails before rspec items? |
@paullaz I got around having to use |
Currently in order to use RSpec machers in steps definitions I've got to:
The text was updated successfully, but these errors were encountered: