Skip to content

Instantly share code, notes, and snippets.

@pvh
Created October 11, 2011 04:55
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 pvh/1277329 to your computer and use it in GitHub Desktop.
Save pvh/1277329 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe Thing do
subject { Thing.new() }
describe "#rating" do
its(:amount) { should == 25 }
end
describe "winning" do
before { subject.win }
describe its(:rating) do
its(:amount) { should > 25 }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment