On Nov 20, 3:55 pm, "Todd A. Jacobs" <tjacobs-sndr-
[email protected]> wrote:
> I was reading this page:
>
>    http://api.rubyonrails.org/classes/Fixtures.html#M000326
>
> and was trying to get hashed labels working. However, calling it from
> within a unit test results in this error:
>
>     def test_defaults_to_disabled
>         identify('one')
>     end
>
It's a class method on the Fixtures class, so Fixtures.identify 'one'

Fred

>   2) Error:
>   test_defaults_to_disabled(AdminTest):
>   NoMethodError: undefined method `identify' for
>   #<AdminTest:0x7f9f493e5248>
>       /test/unit/admin_test.rb:45:in `test_defaults_to_disabled'
>
> So, how is one supposed to properly call label()?
>
> --
> "Oh, look: rocks!"
>         -- Doctor Who, "Destiny of the Daleks"

--

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=.


Reply via email to