Proper usage of identify(label)

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

  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()?

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\(&#39;one&#39;\)
end

It's a class method on the Fixtures class, so Fixtures.identify 'one'

Fred

I'm running 2.3.4, and with this:

    def test_defaults_to_disabled
  puts "Fix: " << Fixtures.indentify('one')
    end

I'm still getting:

    test_defaults_to_disabled(AdminTest):
    NoMethodError: undefined method `indentify' for Fixtures:Class
  /test/unit/admin_test.rb:40:in `test_defaults_to_disabled'

Is the API incorrect, or is there something else going on here?

"indentify" vs "identify" ? :slight_smile:

I think "indentify" is what happens to your fender when someone hits
your car with theirs...