aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-xactiverecord/test/associations_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index f2a87eec49..42e3e09187 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -1998,6 +1998,12 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
assert_raises(ActiveRecord::ReadOnlyRecord) { david.save! }
end
+ def test_updating_attributes_on_rich_associations_with_limited_find_from_reflection
+ david = projects(:action_controller).selected_developers.first
+ david.name = "DHH"
+ assert_nothing_raised { david.save! }
+ end
+
def test_updating_attributes_on_rich_associations_with_limited_find
david = projects(:action_controller).developers.find(:all, :select => "developers.*").first