aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/validations_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 11:44:59 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 11:44:59 +0000
commita2130c22d779ae0cd52a7fd60edd3a6db9ca83a5 (patch)
tree58530a4fc2bfe847ef12df8321675aaa9f60041a /activerecord/test/validations_test.rb
parent87b0d72fe6f97a6364a67228fdcd3a6e3a40f602 (diff)
downloadrails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.tar.gz
rails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.tar.bz2
rails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.zip
Set a high default salary within the validation range
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/validations_test.rb')
-rwxr-xr-xactiverecord/test/validations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb
index e29006983e..edd5356e23 100755
--- a/activerecord/test/validations_test.rb
+++ b/activerecord/test/validations_test.rb
@@ -351,7 +351,7 @@ class ValidationsTest < Test::Unit::TestCase
def test_throw_away_typing
d = Developer.create "name" => "David", "salary" => "100,000"
assert !d.valid?
- assert_not_equal "100,000", d.salary
+ assert_equal 100, d.salary
assert_equal "100,000", d.salary_before_type_cast
end
end \ No newline at end of file