hello, I''ve already asked via Rails channels on this and have received no response, so I''m asking here in hopes someone has run into something similar. I updated to rails 2.3.3 yesterday, and now all of my specs are failing with the following error: Fixture::FormatError in ''PublishedGallery Methods#thumbnail should delegate to its lead asset'' a YAML error occurred parsing /Users/mpd/timber/spec/fixtures/ galleries.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html The exact error was: NoMethodError: undefined method `abstract_class?'' for Object:Class A full stack trace (and other info like the list of system gems) is available at: http://gist.github.com/151492 The real problem has nothing to do with YAML. I can go green right now by changing RAILS_GEM_VERSION in environment.rb back to 2.3.2. I''m sure this is due to some Rails change, but I can''t find any info about it. Only running my specs is broken, both via rake and the spec command. I can use script/console with both test and development environments with no problems, and the app looks to be running fine. It just looks like a load-order problem somewhere, but I''m not sure where to start debugging. thanks
2009/7/21 mpd <mpd at particularplace.com>:> > I''m sure this is due to some Rails change, but I can''t find any info > about it. Only running my specs is broken, both via rake and the spec > command. I can use script/console with both test and development > environments with no problems, and the app looks to be running fine. > It just looks like a load-order problem somewhere, but I''m not sure > where to start debugging.I can''t really help, except to say that I''m also running Rails 2.3.3 and I''m *not* seeing this error. I''m not running fixtures, however (I use Machinist) so that might help you pin it down. Also, grepping for the "abstract_class?" method shows that it''s defined in ActiveRecord::Base. You might try diffing between 2.3.2 and 2.3.3 on whatever code loads fixtures for test cases; it might be that 2.3.3 does fixtures a little bit differently or something. -- Have Fun, Steve Eley (sfeley at gmail.com) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org
Reasonably Related Threads
- rspec-rails and rack middleware
- RecordNotFound bubbling thru to cucumber
- spec-ing private methods?
- Can't run specs after upgrading gems... get 0 tests, 0 assertions...
- Verifying some understanding about manipulating DB data in before/after callbacks in RSpec