Closed gavinlaking closed 12 years ago
That's quite strange. Can you take a peek at example.metadata inside your step and see what that gives you, specifically, what is :type
set to, it should be :request
.
:type
is set to :request
. I added the require "rspec/rails"
above the require "turnip/capybara"
line and now things have started working. I've got a funny feeling I had a mangled configuration Jonas, my apologies for that.
Interesting... would it be possible to detect when someone is attempting to use the rspec/rails stuff inside turnip without it being required? Would give us a chance to print out a helpful error message.
I have the same problem. Solution does not work for me unfortunately… I am using Capybara 2.0. Could that be the problem?
Yes, we'll create a release which is compatible with Capybara 2.0 within the next few days.
I'm having a bit of trouble running my turnip features. Specifically, I'm getting the following error:
My
spec_helper
:My
spec/features/customers/search.feature
:And finally my
spec/step_definitions/customers/searches_steps.rb
:Any ideas? I'm sure I'm missing a configuration line!
Cheers
Gav