[rspec-users] backslash in story runner scenario

aidy lewis aidy.lewis at googlemail.com
Tue Sep 9 12:58:03 EDT 2008


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


More information about the rspec-users mailing list