Created
February 21, 2012 21:44
-
-
Save SoldierCoder/1879177 to your computer and use it in GitHub Desktop.
whats wrong with this example?
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
# spec/models/user_spec.rb | |
require 'spec_helper' | |
# I already KNOW I have user with id of 2 and uid of '26954221' and screen_name of 'SoldierCoder' | |
# these tests all fail. Why? | |
describe User do | |
it 'should get the UID' do | |
@ed = User.find(2) | |
@ed.uid.should == '26954221' | |
end | |
it 'should get the right screen name' do | |
@ed.screen_name.should == 'SoldierCoder' | |
end | |
# pending "add some examples to (or delete) #{__FILE__}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment