[rspec-users] backslash in story runner scenario

David Chelimsky dchelimsky at gmail.com
Tue Sep 9 12:59:52 EDT 2008


Please post bugs to http://rspec.lighthouseapp.com.

Thanks,
David

On Tue, Sep 9, 2008 at 11:58 AM, aidy lewis <aidy.lewis at googlemail.com> wrote:
> Hi,
>
> If a backslash is put into a story runner scenario
>
>  Scenario: Message is sent
>    Given an order has been created
>    When I goto the purchased screen
>    And something with a \ breaks it
>
> then this exception is created
>
> c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/world.rb:63:in
> `store_and_call': undefined method `name' for nil:NilClass
> (NoMethodError)
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/world.rb:110:in
> `When'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:115:in
> `send'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:115:in
> `to_proc'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:95:in
> `instance_eval'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:95:in
> `to_proc'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:95:in
> `each'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_mediator.rb:95:in
> `to_proc'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/scenario_runner.rb:20:in
> `instance_eval'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/scenario_runner.rb:20:in
> `run'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_runner.rb:49:in
> `run_stories'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_runner.rb:45:in
> `each'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_runner.rb:45:in
> `run_stories'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_runner.rb:40:in
> `each'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner/story_runner.rb:40:in
> `run_stories'
>
>        from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/story/runner.rb:49:in
> `register_exit_hook'
>
>
> Aidy
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list