[rspec-users] [Cucumber] Struggling with "multiple step definitions"

Bart Zonneveld zuperinfinite at gmail.com
Sat Jan 17 16:48:11 EST 2009


Hey gang,

I find myself struggling with multiple step definitions in cucumber  
all the time. I regularly test the contents of my flash[:notice] in  
steps, since I think that's part of the behaviour of the app. So,  
while implementing a new feature, I ran into the following error:

/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.15/bin/../lib/cucumber/ 
step_mother.rb:81:in `regexp_args_proc': Multiple step definitions  
match "zou ik een melding moeten zien dat de reactie gemarkeerd is als  
spam": (Cucumber::Multiple)

features/steps/comments.rb:93:in `/^zou ik een melding moeten zien dat  
de reactie gemarkeerd is als spam$/'
features/steps/common.rb:9:in `/^zou ik een melding moeten zien dat de| 
het (.*?) is opgeslagen$/'

Even those who aren't fluent in Dutch (since that's what the steps are  
written in), it's clearly not the same step... I am no regex wizard,  
so I might do something horribly wrong with my steps, but I do like to  
know how I can fix this.

Any ideas?
thanks,
bartz


More information about the rspec-users mailing list