Skip to content

Instantly share code, notes, and snippets.

@jgagne33
Created March 26, 2009 19:30
Show Gist options
  • Save jgagne33/86266 to your computer and use it in GitHub Desktop.
Save jgagne33/86266 to your computer and use it in GitHub Desktop.
rpwin:~/redeparede/code/trunk jasongagne$ ruby spec/controllers/meebo_controller_spec.rb
.................F.F.F*.......F*F.F..F...
Pending:
MeeboController getinfo should return error when user doesn't exists (Not Yet Implemented)
/Users/jasongagne/redeparede/code/trunk/vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb:121:in `initialize'
MeeboController getfriends should return error when user doesn't exists (Not Yet Implemented)
/Users/jasongagne/redeparede/code/trunk/vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb:121:in `initialize'
1)
'MeeboController uidexists should success when user exists' FAILED
expected: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"1402298589", "exists"=>true}},
got: {"stat"=>"ok", "data"=>{"exists"=>false}} (using ==)
spec/controllers/meebo_controller_spec.rb:98:
spec/controllers/meebo_controller_spec.rb:3:
2)
'MeeboController usernameexists should success when user exists' FAILED
expected: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"1402298589", "exists"=>true}},
got: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"745185059", "exists"=>true}} (using ==)
spec/controllers/meebo_controller_spec.rb:114:
spec/controllers/meebo_controller_spec.rb:3:
3)
NoMethodError in 'MeeboController getinfo should return info about the given user'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.avatar_url
/Users/jasongagne/redeparede/code/trunk/app/controllers/meebo_controller.rb:63:in `getinfo'
spec/controllers/meebo_controller_spec.rb:127:
spec/controllers/meebo_controller_spec.rb:3:
4)
NoMethodError in 'MeeboController getfriends should return a list of friends'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.relationships
/Users/jasongagne/redeparede/code/trunk/app/controllers/meebo_controller.rb:57:in `getfriends'
spec/controllers/meebo_controller_spec.rb:196:
spec/controllers/meebo_controller_spec.rb:3:
5)
'MeeboController authenticateusername should auth with success' FAILED
expected: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"1402298589", "authenticated"=>true}},
got: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"745185059", "authenticated"=>true}} (using ==)
spec/controllers/meebo_controller_spec.rb:211:
spec/controllers/meebo_controller_spec.rb:3:
6)
'MeeboController authenticatetoken should auth with success' FAILED
expected: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"1402298589", "authenticated"=>true}},
got: {"stat"=>"ok", "data"=>{"authenticated"=>false}} (using ==)
spec/controllers/meebo_controller_spec.rb:225:
spec/controllers/meebo_controller_spec.rb:3:
7)
'MeeboController authenticateuid should auth with success' FAILED
expected: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"1402298589", "authenticated"=>true}},
got: {"stat"=>"ok", "data"=>{"name"=>"Quentin Pilpot", "uid"=>"745185059", "authenticated"=>true}} (using ==)
spec/controllers/meebo_controller_spec.rb:252:
spec/controllers/meebo_controller_spec.rb:3:
8)
'PostFinder SQLFinder should not allow sql injection on order' FAILED
expected no Exception, got #<Spec::Expectations::ExpectationNotMetError: expected: 2,
got: 0 (using ==)>
./spec/models/lib/post_finder_spec.rb:11:
9)
'Post callbacks set_country_city_merge should set on update' FAILED
country_city_merge should have initially been 319924150, but was 1827559498
./spec/models/post_spec.rb:38:
Finished in 3.254691 seconds
41 examples, 7 failures, 2 pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment