[rspec-users] no out for parameterized stories?

aa aa lists at ruby-forum.com
Sun Aug 24 20:54:51 EDT 2008


Hi,
I just install rspec (and rspec-rails) from git and tried to write a
user story, its all good but the output lacks the parameters i used.
Here's an example of what is happening

=== RSPEC FILE stories/example.rb ===
Story "A story", %{
  As a user
  I want to do something
  So I can have some benefit
}, :type => RailsStory do

  Scenario "Rspec Example" do
    Given "A parameterized story called", "story name" do |name|
    end
  end
end

==== OUTPUT ===
> ruby stories/all.rb
Running 1 scenario

Story: A story


    As a user
    I want to do something
    So I can have some benefit


  Scenario: Rspec Example

    Given A parameterized story called
===============
Notice the last line? Anyone know whats happening here?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list