require File.join(File.dirname(__FILE__), *%w[helper]) Story "Plan cup", %{ As a cup organizer I want to declare how many teams are in the cup So that I can lay out the chart }, :type => RailsStory do Scenario "set up a 4 team cup structure" do Given "a new cup with max teams of", 4 do |max_teams| end When "I ask to see it" do end Then "It should a row count of", 3 do end Then "The round 1 row should have a column count of", 4 do end Then "The round 2 row should have a column count of", 2 do end Then "The winner row should have a column count of", 1 do end end Scenario "set up an 8 team cup structure" do Given "a new cup with max teams of", 8 When "I ask to see it" Then "It should a row count of", 4 Then "The round 1 row should have a column count of", 8 Then "The round 2 row should have a column count of", 4 Then "The round 3 row should have a column count of", 2 do end Then "The winner row should have a column count of", 1 end end