Skip to content

Instantly share code, notes, and snippets.

@SoldierCoder
Created February 21, 2012 21:44
Show Gist options
  • Save SoldierCoder/1879177 to your computer and use it in GitHub Desktop.
Save SoldierCoder/1879177 to your computer and use it in GitHub Desktop.
whats wrong with this example?
# 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