Created
July 31, 2012 23:53
-
-
Save hishma/3221818 to your computer and use it in GitHub Desktop.
just another afternoon spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "just another afternoon” do | |
jeff = Factory.create(:loser) | |
artie = Cat.new(:name => "Artie", :size => "long", :color => "black”) | |
helpeless_victim = Victim.new(:type => ['Mouse, 'Bird', 'Mole', 'Rat'].sample) | |
artie.catch(helpless_victim) | |
while helpeless_victim.is_alive? | |
artie.torture(victim) | |
sleep 10 | |
artie.torture(victim) | |
sleep 5 | |
artie.torture(victim) | |
end | |
artie.eat(helpless_victim, :partially => true) | |
if artie.inside_on_carpet? | |
artie.regurgitate(victim) | |
else | |
artie.go_inside_on_carpet | |
artie.regurgitate(victim) | |
end | |
jeff.did_step_on_regurgitated_victim_in_bare_feat?.should be_true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment