Skip to content
This repository
Browse code

Finalizing changes for Rails 3.2 support, which is still backwards co…

…mpatible with 3.0
  • Loading branch information...
commit fbfdc0dce89919c277eb632ef44207a1b7cc8c6d 1 parent acbef7a
Sam Lown authored August 02, 2012
2  couchrest_model.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25 25
 
26 26
   s.add_dependency(%q<couchrest>, "~> 1.1.3")
27 27
   s.add_dependency(%q<mime-types>, "~> 1.15")
28  
-  s.add_dependency(%q<activemodel>, "~> 3.2.0")
  28
+  s.add_dependency(%q<activemodel>, "~> 3.0")
29 29
   s.add_dependency(%q<tzinfo>, "~> 0.3.22")
30 30
   s.add_development_dependency(%q<rspec>, "~> 2.6.0")
31 31
   s.add_development_dependency(%q<json>, ["~> 1.5.1"])
6  spec/unit/dirty_spec.rb
@@ -38,7 +38,11 @@ def code; self['_id'] || @code; end
38 38
         @card = Card.new(:first_name => "matt")
39 39
         @card.first_name = "andrew"
40 40
         @card.first_name_changed?.should be_true
41  
-        @card.changes.should == { "first_name" => [nil, "andrew"] }
  41
+        if ActiveModel::VERSION::STRING > "3.2.0"
  42
+          @card.changes.should == { "first_name" => [nil, "andrew"] }
  43
+        else
  44
+          @card.changes.should == { "first_name" => ["matt", "andrew"] }
  45
+        end
42 46
       end
43 47
     end
44 48
 

0 notes on commit fbfdc0d

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