aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-06-24 20:19:19 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-24 20:19:19 +0200
commit73682d016c2fff0b92ddb950efb25e80b07c716f (patch)
treefdeede2d9216fcb5bdd67246e426114974422f12 /activerecord/test/cases
parent67ee6c38b9b112eabe37d5869c23210b9ebf453c (diff)
parent4b5f417e63e4cdd7fd6837c10ebaa9dd4860f55e (diff)
downloadrails-73682d016c2fff0b92ddb950efb25e80b07c716f.tar.gz
rails-73682d016c2fff0b92ddb950efb25e80b07c716f.tar.bz2
rails-73682d016c2fff0b92ddb950efb25e80b07c716f.zip
Merge remote branch 'miloops/fixes'
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/aggregations_test.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/activerecord/test/cases/aggregations_test.rb b/activerecord/test/cases/aggregations_test.rb
index e5fc1a2046..74588b4f47 100644
--- a/activerecord/test/cases/aggregations_test.rb
+++ b/activerecord/test/cases/aggregations_test.rb
@@ -121,34 +121,6 @@ class AggregationsTest < ActiveRecord::TestCase
end
end
-class DeprecatedAggregationsTest < ActiveRecord::TestCase
- class Person < ActiveRecord::Base; end
-
- def test_conversion_block_is_deprecated
- assert_deprecated 'conversion block has been deprecated' do
- Person.composed_of(:balance, :class_name => "Money", :mapping => %w(balance amount)) { |balance| balance.to_money }
- end
- end
-
- def test_conversion_block_used_when_converter_option_is_nil
- assert_deprecated 'conversion block has been deprecated' do
- Person.composed_of(:balance, :class_name => "Money", :mapping => %w(balance amount)) { |balance| balance.to_money }
- end
- assert_raise(NoMethodError) { Person.new.balance = 5 }
- end
-
- def test_converter_option_overrides_conversion_block
- assert_deprecated 'conversion block has been deprecated' do
- Person.composed_of(:balance, :class_name => "Money", :mapping => %w(balance amount), :converter => Proc.new { |balance| Money.new(balance) }) { |balance| balance.to_money }
- end
-
- person = Person.new
- assert_nothing_raised { person.balance = 5 }
- assert_equal 5, person.balance.amount
- assert_kind_of Money, person.balance
- end
-end
-
class OverridingAggregationsTest < ActiveRecord::TestCase
class Name; end
class DifferentName; end