On May 18, 7:54 am, "[email protected]"
<[email protected]> wrote:
> Hi,
> I'm a noob trying to work through adding restful_authentication to
> a blog. The login page allows me to login and I can create a post
> after loggin in...but my rake:test units won't run because I'm getting
> an undefined method 'fixtures' for UserTest:Class (NoMethodError) I'm
> getting an error on 'fixtures: users'
>
> ==>I did move include AuthenticatedTestHelper in test/test_helper.rb
> as per the instructions and commented it out in this class
>
> here's a bigger snip of my user_test.rb------
>
> require File.dirname(__FILE__) + '/../test_helper'
>
> class UserTest < Test::Unit::TestCase
> # Be sure to include AuthenticatedTestHelper in test/test_helper.rb
> instead.
> # Then, you can remove it from this and the functional test.
> # include AuthenticatedTestHelper
> fixtures :users
> .......
Aaahhhhhhh => No wonder my forehead is flat from slapping it! Of
course all I had to do was comment out the fixtures :users line to get
my unit tests to run. Sorry for wasting everyone's time! --Wayne
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---