[rspec-users] 'And' step definition
Mark Wilden
mark at mwilden.com
Fri Dec 5 21:16:45 EST 2008
Can you have an And step in a feature? With this, I get a NoMethodError for
'And':
Given /a company named (.+)/ do |name|
@company = Company.create!(:name => name)
end
And /a user named (.+)/ do |name|
@user = create_user name
end
I'm probably missing something really obvious.
///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081205/1dde454f/attachment.html>
More information about the rspec-users
mailing list