When /set the “(.)" to "(.)”/ do |a,v|
pending
end
However, no matter how I invoke cucumber, I get this error:
And I set the "type" to "main" #
features/locations/step_definitions/location_steps.rb:33
TODO (Spec::Example::ExamplePendingError)
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/pending.rb:13:in pending' ./features/locations/step_definitions/location_steps.rb:34:inAnd
/set the “(.)" to "(.)”/’
features/locations/location.feature:24:in `And I set the “type” to
“main”’
When /set the “(.)" to "(.)”/ do |a,v|
raise Cucumber::Pending.new(“I need to implement this asap”)
end
That works nicely. The string argument does not show up anywhere that I
could find when this is invoked from autotest but the step definition
itself is treated as pending. This technique also seems to have the
effect of escaping any following code in the definition block.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.