Problem with Plain Text Story Runner

Hi Guys
I’m new to Ruby and BDD.
I’m having a problem while running my story in plain text.
This is the console OUTPUT.
/var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_mediator.rb:51:in
current_scenario': undefined method current_scenario’ for nil:NilClass
(NoMethodError)
from
/var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_mediator.rb:26:in
create_given' from /var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_parser.rb:61:in create_given’
from
/var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_parser.rb:107:in
given' from /var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_parser.rb:31:in process_line’
from
/var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/story_parser.rb:21:in
parse' from /var/lib/gems/1.8/gems/rspec-1.1.3/lib/spec/story/runner/plain_text_story_runner.rb:35:in run’

I was fallowing David C. article
http://blog.davidchelimsky.net/articles/2007/10/21/story-runner-in-plain-english
I got RB file with Steps defined, RB file with runner and a text file
with Stories.

Doing the same thing in Ruby code and not a plain text works fine.
Any suggestions ?

Greg

Hi Greg,
maybe you did not append a colon to the word ‘Story’ in the plain
text file.
The runner want it this way:
Story: Story Title …
Matthias

Am 27.02.2008 um 15:14 schrieb Greg Gigon:

Hey Mtthias
Thank you for your help. The issue actually was that I didn’t have
spaces after colons.Like:
Story:Blabla
Now when I added the spaces it works fine.
Cheers for that :slight_smile:

Greg

Matthias Hennemeyer wrote:

Hi Greg,
maybe you did not append a colon to the word ‘Story’ in the plain
text file.
The runner want it this way:
Story: Story Title …
Matthias

Am 27.02.2008 um 15:14 schrieb Greg Gigon: