On Mar 15, 7:40 pm, Rodrigo Alves Vieira <[email protected]> wrote:
> Hello everyone, in a test helper in my app I call category.id that gets the
> id of category in the database. However, when running RSpec I get the
> following error:
>
>   As a parla customer
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
> /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
> Object#id will be deprecated; use Object#object_id
>
> I can't change id method to object_id because they're totally different
> things. One is the actual id of the model instance, other is the 
> object_idRuby gives to any of its objects.
> Does anyone know the solution for this problem?

This can happen because the object you're calling id on isn't what you
think it is (eg it's nil)

Fred
>
> I appreciate your attention and help!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to