Forum: Ruby on Rails undefined method `fixtures'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
149379873fe2cb70e550c6bff8fedd0c?d=identicon&s=25 Jeff Schwab (Guest)
on 2009-03-18 21:50
(Received via mailing list)
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 method
`fixtures' for UserTest:Class (NoMethodError)

Any help would be welcome.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-03-18 23:06
(Received via mailing list)
On Mar 18, 8:50 pm, Jeff Schwab <j...@schwabcenter.com> 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 method
> `fixtures' for UserTest:Class (NoMethodError)
>
what does that file look like ?

Fred
149379873fe2cb70e550c6bff8fedd0c?d=identicon&s=25 Jeff Schwab (Guest)
on 2009-03-18 23:49
(Received via mailing list)
On Mar 18, 6:05 pm, Frederick Cheung <frederick.che...@gmail.com>
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/1...

Thanks, though!
Fd8312e6806117df865e87bfb861c575?d=identicon&s=25 Akshay B. (akshay_b)
on 2011-06-09 12:27
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
This topic is locked and can not be replied to.