-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
TypeError: RSpec::Mocks::Mock#to_hash should return Hash #51
Comments
What does |
I updated the issue, see the mock_city method above. (it was generated by scaffold) |
hmmm this same error was also reported here: |
Can you paste a backtrace? |
exactly the same error |
It seems that something is calling Because you've created a mock with A backtrace should help figure out what part of the system is calling |
Another thing you could do is remove the |
backtrace: rake aborted! |
I removed
|
Once I'm going to close this as I think supporting this is definitely out of scope for rspec-mocks and probably even out of scope of rspec-rails. If you want to continue the conversation in terms of what |
controller
spec
The problem seems to be with:
admin_city_path(@city)
Resulting in this error msg:
TypeError: RSpec::Mocks::Mock#to_hash should return Hash
The text was updated successfully, but these errors were encountered: