Changeset 4752
- Timestamp:
- 08/11/06 23:38:46 (2 years ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/fixtures.rb (modified) (1 diff)
- trunk/activerecord/test/fixtures_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r4743 r4752 1 1 *SVN* 2 3 * Tweak fixtures so they don't try to use a non-ActiveRecord class. [Kevin Clark] 2 4 3 5 * Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore. [Rick Olson] trunk/activerecord/lib/active_record/fixtures.rb
r4604 r4752 396 396 397 397 list = @fixture.inject([]) do |fixtures, (key, value)| 398 col = klass.columns_hash[key] unless klass.nil?398 col = klass.columns_hash[key] if klass.kind_of?(ActiveRecord::Base) 399 399 fixtures << ActiveRecord::Base.connection.quote(value, col).gsub('\\n', "\n").gsub('\\r', "\r") 400 400 end trunk/activerecord/test/fixtures_test.rb
r3866 r4752 344 344 end 345 345 end 346 347 class DevelopersProject; end; 348 349 class ManyToManyFixturesWithClassDefined < Test::Unit::TestCase 350 fixtures :developers_projects 351 352 def test_this_should_run_cleanly 353 assert true 354 end 355 end