Skip to content
This repository
Browse code

Fix failing AMo isolated tests

  • Loading branch information...
commit c6e0923245a2e50cd7e1db11741a66569bfd6812 1 parent fe68cf2
Joshua Peek authored September 05, 2009
2  activemodel/test/cases/serializeration/json_serialization_test.rb
... ...
@@ -1,7 +1,9 @@
1 1
 require 'cases/helper'
2 2
 require 'models/contact'
  3
+require 'active_support/core_ext/object/instance_variables'
3 4
 
4 5
 class Contact
  6
+  extend ActiveModel::Naming
5 7
   include ActiveModel::Serializers::JSON
6 8
 
7 9
   def attributes
2  activemodel/test/cases/serializeration/xml_serialization_test.rb
... ...
@@ -1,7 +1,9 @@
1 1
 require 'cases/helper'
2 2
 require 'models/contact'
  3
+require 'active_support/core_ext/object/instance_variables'
3 4
 
4 5
 class Contact
  6
+  extend ActiveModel::Naming
5 7
   include ActiveModel::Serializers::Xml
6 8
 
7 9
   def attributes
1  activemodel/test/cases/validations/presence_validation_test.rb
@@ -5,6 +5,7 @@
5 5
 require 'models/topic'
6 6
 require 'models/developer'
7 7
 require 'models/person'
  8
+require 'models/custom_reader'
8 9
 
9 10
 class PresenceValidationTest < ActiveModel::TestCase
10 11
   include ActiveModel::TestsDatabase
2  activemodel/test/cases/validations/with_validation_test.rb
... ...
@@ -1,9 +1,11 @@
1 1
 # encoding: utf-8
2 2
 require 'cases/helper'
  3
+require 'cases/tests_database'
3 4
 
4 5
 require 'models/topic'
5 6
 
6 7
 class ValidatesWithTest < ActiveRecord::TestCase
  8
+  include ActiveModel::TestsDatabase
7 9
   include ActiveModel::ValidationsRepairHelper
8 10
 
9 11
   repair_validations(Topic)

0 notes on commit c6e0923

Please sign in to comment.
Something went wrong with that request. Please try again.