[rspec-users] Problem with Plain Text Story Runner

Greg Gigon lists at ruby-forum.com
Wed Feb 27 09:14:35 EST 2008


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/.


More information about the rspec-users mailing list