examples/steps.rb in turnip-0.2.0 vs examples/steps.rb in turnip-0.3.0
- old
+ new
@@ -30,18 +30,10 @@
step 'it should be called "John"' do
@monster_name.should == "John"
end
-step "there are :count monkeys with :color hair" do |count, color|
- @monkeys = Array.new(count) { color }
-end
-
-step "there should be 3 monkeys with blue hair" do
- @monkeys.should == [:blue, :blue, :blue]
-end
-
step "there is a monster with :count hitpoints" do |count|
@monster = count
end
step "I attack the monster and do :count points damage" do |count|
@@ -71,23 +63,9 @@
@song = song
end
step "the song should have :count lines" do |count|
@song.to_s.split("\n").length.should eq(count)
-end
-
-step "the monster has an alignment", :for => :evil do
- @alignment = 'Evil'
-end
-
-steps_for :neutral do
- step "the monster has an alignment" do
- @alignment = 'Neutral'
- end
-end
-
-step "that alignment should be :alignment" do |alignment|
- @alignment.should eq(alignment)
end
placeholder :count do
match /\d+/ do |count|
count.to_i