[rspec-users] Problem with Plain Text Story Runner

Matthias Hennemeyer mhennemeyer at googlemail.com
Thu Feb 28 05:32:08 EST 2008


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:

> 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 Chelimsky 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
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list