aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-03-18 13:35:57 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-22 19:36:16 -0300
commitda6c7bd4b411105e7556ff5015e3c9f6ab1d26fe (patch)
tree8697d8d2a51c85bed762ba901c1a55c2f8f0b8c1 /activemodel/test/cases/attribute_methods_test.rb
parente06c44800284696868a1e6a273abefec3047312f (diff)
downloadrails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.tar.gz
rails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.tar.bz2
rails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.zip
Do not in place modify what table_name returns
Diffstat (limited to 'activemodel/test/cases/attribute_methods_test.rb')
-rw-r--r--activemodel/test/cases/attribute_methods_test.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activemodel/test/cases/attribute_methods_test.rb b/activemodel/test/cases/attribute_methods_test.rb
index e814666d99..022c6716bd 100644
--- a/activemodel/test/cases/attribute_methods_test.rb
+++ b/activemodel/test/cases/attribute_methods_test.rb
@@ -9,10 +9,6 @@ class ModelWithAttributes
define_method(:bar) do
'original bar'
end
-
- define_method(:zomg) do
- 'original zomg'
- end
end
def attributes
@@ -102,13 +98,6 @@ class AttributeMethodsTest < ActiveModel::TestCase
assert_equal "value of foo bar", ModelWithAttributesWithSpaces.new.send(:'foo bar')
end
- def test_defined_methods_always_return_duped_string
- ModelWithAttributes.define_attr_method(:zomg, 'lol')
- assert_equal 'lol', ModelWithAttributes.zomg
- ModelWithAttributes.zomg << 'bbq'
- assert_equal 'lol', ModelWithAttributes.zomg
- end
-
test '#define_attr_method generates attribute method' do
ModelWithAttributes.define_attr_method(:bar, 'bar')