aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-03-07 11:06:39 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-07 11:06:44 +0000
commitfd3ccbe955ed58298df43f537a01358d15d8d4cf (patch)
tree8c408cc956781aaaae09290f78db2288794d9e2c /activerecord/test/cases/validations_test.rb
parentdfcf1e4cf6128ae67f9cab291fd6c08081aa5d80 (diff)
downloadrails-fd3ccbe955ed58298df43f537a01358d15d8d4cf.tar.gz
rails-fd3ccbe955ed58298df43f537a01358d15d8d4cf.tar.bz2
rails-fd3ccbe955ed58298df43f537a01358d15d8d4cf.zip
DRY with_kcode in Active Record tests
Diffstat (limited to 'activerecord/test/cases/validations_test.rb')
-rw-r--r--activerecord/test/cases/validations_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb
index cbb184131f..8ef5dc09c5 100644
--- a/activerecord/test/cases/validations_test.rb
+++ b/activerecord/test/cases/validations_test.rb
@@ -1442,20 +1442,6 @@ class ValidationsTest < ActiveRecord::TestCase
t.author_name = "Hubert J. Farnsworth"
assert t.valid?, "A topic with an important title and author should be valid"
end
-
- private
- def with_kcode(kcode)
- if RUBY_VERSION < '1.9'
- orig_kcode, $KCODE = $KCODE, kcode
- begin
- yield
- ensure
- $KCODE = orig_kcode
- end
- else
- yield
- end
- end
end