-
-
Save vangberg/317629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/mongo_mapper.rb b/lib/mongo_mapper.rb | |
index eee7291..81bfd8a 100644 | |
--- a/lib/mongo_mapper.rb | |
+++ b/lib/mongo_mapper.rb | |
@@ -5,7 +5,7 @@ require 'set' | |
# so i want to make sure that if you are using gems you do in fact have the correct versions | |
# if there is a better way to do this, please enlighten me! | |
if self.class.const_defined?(:Gem) | |
- gem 'activesupport', '>= 2.3' | |
+ gem 'activesupport', '= 2.3.5' | |
gem 'mongo', '0.18.3' | |
gem 'jnunemaker-validatable', '1.8.1' | |
end | |
@@ -115,4 +115,4 @@ module MongoMapper | |
end | |
require 'mongo_mapper/support' | |
-require 'mongo_mapper/plugins' | |
\ No newline at end of file | |
+require 'mongo_mapper/plugins' | |
diff --git a/test/functional/associations/test_in_array_proxy.rb b/test/functional/associations/test_in_array_proxy.rb | |
index 6372c5e..cfe6f50 100644 | |
--- a/test/functional/associations/test_in_array_proxy.rb | |
+++ b/test/functional/associations/test_in_array_proxy.rb | |
@@ -34,6 +34,11 @@ class InArrayProxyTest < Test::Unit::TestCase | |
user.lists.concat List.new(:name => 'Foo3!') | |
user.lists.size.should == 3 | |
end | |
+ | |
+ should "return updated association list" do | |
+ user = User.new(:name => 'John') | |
+ user.lists.push(List.new(:name => 'Foo1')).size.should == 1 | |
+ end | |
should "ignore adding duplicate ids" do | |
user = User.create(:name => 'John') | |
@@ -318,4 +323,4 @@ class InArrayProxyTest < Test::Unit::TestCase | |
end | |
end | |
end | |
-end | |
\ No newline at end of file | |
+end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loaded suite test/functional/associations/test_in_array_proxy | |
Started | |
.........................................F | |
Finished in 0.644572 seconds. | |
1) Failure: | |
test: description should return updated association list. (InArrayProxyTest) | |
[/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/jnunemaker-matchy-0.4.0/lib/matchy/built_in/operator_expectations.rb:30:in `fail!' | |
/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/jnunemaker-matchy-0.4.0/lib/matchy/built_in/operator_expectations.rb:20:in `==' | |
test/functional/associations/test_in_array_proxy.rb:40:in `__bind_1267370063_5259' | |
/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: description should return updated association list. ' | |
/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__' | |
/Users/h/.rvm/gems/ruby-1.8.7-p249/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run_without_test_timing' | |
./test/support/timing.rb:4:in `run']: | |
Expected 0 to == 1. | |
42 tests, 19 assertions, 1 failures, 0 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment