Undefined method `fixtures'


#1

I’ve just installed restful_authentication, and generated:

script/generate authenticated user session

Now, if I try to run unit tests, I get the following error:

test/unit/user_test.rb:7:in <class:UserTest>': undefined methodfixtures’ for UserTest:Class (NoMethodError)

Any help would be welcome.


#2

On Mar 18, 8:50 pm, Jeff S. removed_email_address@domain.invalid wrote:

I’ve just installed restful_authentication, and generated:

script/generate authenticated user session

Now, if I try to run unit tests, I get the following error:

test/unit/user_test.rb:7:in <class:UserTest>': undefined methodfixtures’ for UserTest:Class (NoMethodError)

what does that file look like ?

Fred


#3

On Mar 18, 6:05 pm, Frederick C. removed_email_address@domain.invalid
wrote:

what does that file look like ?
It’s the default test case generated by restful_authentication.
Several other methods were missing, as well. The test class seems to
use the wrong base class for some reason; I’ve just worked around it
locally, and filed a ticket:

http://rails_security.lighthouseapp.com/projects/15332/tickets/44-undefined-method-fixtures

Thanks, though!


#4

I would suggest you one thing.

If you want to only have a test running.

just comment the fixtures :users line

then see how the test runs. If your successful just give me a shout that
u have done it