Skip to content

Instantly share code, notes, and snippets.

@hishma
Created July 31, 2012 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hishma/3221818 to your computer and use it in GitHub Desktop.
Save hishma/3221818 to your computer and use it in GitHub Desktop.
just another afternoon spec
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