Created
October 29, 2010 20:31
-
-
Save chad/654351 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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