Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rspec failed for api extension with ruby 1.9.2 #351

Closed
schof opened this issue May 22, 2011 · 0 comments
Closed

rspec failed for api extension with ruby 1.9.2 #351

schof opened this issue May 22, 2011 · 0 comments

Comments

@schof
Copy link
Contributor

schof commented May 22, 2011

Imported from lighthouse. Original ticket at: http://railsdog.lighthouseapp.com/projects/31096/tickets/1883 - Created by Trung Lê -
Thu Mar 24 01:04:40 UTC 2011

Tested with ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]. The rspec tests failed whilst passed with ruby 1.8.7.

@@@

$ rake spec
FF.........

Failures:

  1. Admin::UsersController#generate_api_key should generate a 20 char SHA key
    Failure/Error: put :generate_api_key, {:id => 1}
    Mock "User_1002" received unexpected message :to_ary with (no args)

    ./app/controllers/admin/users_controller_decorator.rb:9:in `generate_api_key'

    ./spec/controllers/admin/users_controller_spec.rb:15:in`block (3 levels) in <top (required)>'

  2. Admin::UsersController#clear_api_key should remove the existing api_key
    Failure/Error: put :clear_api_key, {:id => 1}
    Mock "User_1004" received unexpected message :to_ary with (no args)

    ./app/controllers/admin/users_controller_decorator.rb:16:in `clear_api_key'

    ./spec/controllers/admin/users_controller_spec.rb:23:in`block (3 levels) in <top (required)>'

Finished in 0.74563 seconds
11 examples, 2 failures

@@@

@LBRapid LBRapid closed this as completed Jul 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants