examples/steps.rb in turnip-0.3.0 vs examples/steps.rb in turnip-0.3.1
- old
+ new
@@ -30,9 +30,21 @@
step 'it should be called "John"' do
@monster_name.should == "John"
end
+step 'it should be called "O\'Flannahan"' do
+ @monster_name.should == "O'Flannahan"
+end
+
+step "I change its name to :empty_string" do |empty_string|
+ @monster_name = empty_string
+end
+
+step "it should be nameless" do
+ @monster_name.should == ""
+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|