Skip to content

Instantly share code, notes, and snippets.

@chad
Created October 29, 2010 20:31
Show Gist options
  • Save chad/654351 to your computer and use it in GitHub Desktop.
Save chad/654351 to your computer and use it in GitHub Desktop.
require 'spec'
class Person
def awesome?
true
end
end
describe Person do
it "should return all people" do
Person.should_receive(:all).and_return []
end
it "should have a name" do
chad = Person.new
chad.should be_awesome
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment