aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorMark Rushakoff <mark.rushakoff@gmail.com>2012-04-29 10:02:58 -0700
committerMark Rushakoff <mark.rushakoff@gmail.com>2012-04-29 10:02:58 -0700
commit140b825bdab42eaf535c9847a516773eed27ee6b (patch)
tree317709ce6f90198c5277a75609684fad62002332 /activerecord/test/cases/attribute_methods_test.rb
parent8c2cf1ad1bbb63cab4b503724465d70154f6aab0 (diff)
downloadrails-140b825bdab42eaf535c9847a516773eed27ee6b.tar.gz
rails-140b825bdab42eaf535c9847a516773eed27ee6b.tar.bz2
rails-140b825bdab42eaf535c9847a516773eed27ee6b.zip
Remove unused assignments from activerecord tests
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index ab44dc8811..1093fedea1 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -481,7 +481,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
end
def test_typecast_attribute_from_select_to_false
- topic = Topic.create(:title => 'Budget')
+ Topic.create(:title => 'Budget')
# Oracle does not support boolean expressions in SELECT
if current_adapter?(:OracleAdapter)
topic = Topic.scoped(:select => "topics.*, 0 as is_test").first
@@ -492,7 +492,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
end
def test_typecast_attribute_from_select_to_true
- topic = Topic.create(:title => 'Budget')
+ Topic.create(:title => 'Budget')
# Oracle does not support boolean expressions in SELECT
if current_adapter?(:OracleAdapter)
topic = Topic.scoped(:select => "topics.*, 1 as is_test").first