Mark Wilden wrote:
> Thanks for your replies, David and James. I figured as much, actually,
> since
> you wouldn't want to have some And steps in your definition file and
> some
> Given steps.
>
> I was led astray by "Inside a step_definitions.rb file, steps (which
> strictly speaking should alw
Thanks for your replies, David and James. I figured as much, actually, since
you wouldn't want to have some And steps in your definition file and some
Given steps.
I was led astray by "Inside a step_definitions.rb file, steps (which
strictly speaking should always be called step definitions) refer
Mark Wilden wrote:
> 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 mi
On Fri, Dec 5, 2008 at 8:16 PM, Mark Wilden <[EMAIL PROTECTED]> wrote:
> 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|
> @use
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
__