On 2008-11-24, at 11:47, James Byrne wrote:
Missing slash at end of regex
/When /should determine the party (.*)/
Sig Thanks.
Hey, it happens to the best of us, mate. At least it's an easy fix!
___
rspec-users mailing list
rspec-users@rub
Nick Hoffman wrote:
> On 2008-11-24, at 11:16, James Byrne wrote:
>> I have this:
>>
>> When /obtain the party (.*)/ do |n|
>> n case
>
> Hi James. Shouldn't that be "case n"?
> -Nick
Yes.
> Missing slash at end of regex
> /When /should determine the party (.*)/
Sig Thanks.
--
Poste
On 2008-11-24, at 11:16, James Byrne wrote:
I have this:
When /obtain the party (.*)/ do |n|
n case
Hi James. Shouldn't that be "case n"?
-Nick
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
It looks like you are not closing your regexp here:
> When /should determine the party (.*) do |n|
> When "obtain the party #{n}"
> end
So it doesn't close until it gets here, where you are trying to start a new
one:
> Then /record the party/ do
> Entity.destroy_all
> @party.save!
> end
Missing slash at end of regex
/When /should determine the party (.*)/
2008/11/24 James Byrne <[EMAIL PROTECTED]>:
> James Byrne wrote:
>> James Byrne wrote:
>>
>>> When /should determine the party (.*) do |n|
>>> When "obtain the party #{n}"
>>> end
>>>
>>
>
> Another helpful tidbit that I negl
James Byrne wrote:
> James Byrne wrote:
>
>> When /should determine the party (.*) do |n|
>> When "obtain the party #{n}"
>> end
>>
>
Another helpful tidbit that I neglected to post. The reason that I
focused on the step from step method shown above is that when I comment
these lines out t
James Byrne wrote:
> When /should determine the party (.*) do |n|
> When "obtain the party #{n}"
> end
>
Missed the next follow on lines. Snippet should be:
When /should determine the party (.*) do |n|
When "obtain the party #{n}"
end
Then /record the party/ do
Entity.destroy_all
@part