Hi, I am new in ROR. I have 4 fixtures in my '../test/fixtures' folder:
user.yml, aggregationfeedmaps.yml, aggregations.yml, and feeds.yml. I
have few test files in unit tests folder like user_test.rb,
feeds_test.rb, aggregation_test.rb and such.

When I wrote test for model 'user' using fixture user.yml it worked
fine. But when I  tried to run test for my other models using fixtures
aggregationfeedmaps.yml, aggregations.yml, and feeds.yml it shows this
error:

FixtureClassNotFound: No class attached to find

my test file 'feeds_test.rb':

require File.dirname(__FILE__) + '/../test_helper'

#class FeedsTest < ActiveSupport::TestCase
class FeedsTest < Test::Unit::TestCase
  # Replace this with your real tests.
  fixtures :feeds

  def test_truth
    assert true
  end

  def test_updatefeed
     feed1 = feeds(:feed_1)
#    Feeds.updatefeed(feed1.id)
#    assert_equal(Time.now, feed1.lastupdate)
  end

end


my fixture file: 'feeds.yml'

# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
feed_1:
  id: 1
  sourcelink: http://sports.yahoo.com/ncaaf/teams/aad/ical.ics
  feeddata: testdata
  lastupdate: 2009-02-17 22:42:25
  used: 1

feed_2:
  id: 2
  sourcelink: http://sports.yahoo.com/ncaaf/teams/aae/ical.ics
  feeddata: testdata
  lastupdate: 2009-02-17 22:42:25
  used: 2

test_truth test passes but test_updatefeed shows the
FixtureClassNotFound error
Any help what is going on? Any help on the topic would be highly
appreciated.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to