diff options
author | Florent Guilleux <florent2@gmail.com> | 2012-12-01 13:20:39 -0500 |
---|---|---|
committer | Florent Guilleux <florent2@gmail.com> | 2012-12-01 13:20:39 -0500 |
commit | 90c887fa7d0c454b7533e208daefc342dea4d5f3 (patch) | |
tree | 330d9fd049b3fbbba80dbed5dbe0620d972d06d2 /activemodel/test/cases | |
parent | 5ff59704f68d284381606a1b76e4ffcfd73b2cfa (diff) | |
download | rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.gz rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.bz2 rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.zip |
Remove trailing whitespaces
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r-- | activemodel/test/cases/validations/format_validation_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/validations/format_validation_test.rb b/activemodel/test/cases/validations/format_validation_test.rb index 308a3c6cef..1adb3cea49 100644 --- a/activemodel/test/cases/validations/format_validation_test.rb +++ b/activemodel/test/cases/validations/format_validation_test.rb @@ -68,11 +68,11 @@ class PresenceValidationTest < ActiveModel::TestCase assert t.invalid? assert_equal ["can't be Invalid title"], t.errors[:title] end - + def test_validate_format_of_with_multiline_regexp_should_raise_error assert_raise(ArgumentError) { Topic.validates_format_of(:title, :with => /^Valid Title$/) } end - + def test_validate_format_of_with_multiline_regexp_and_option assert_nothing_raised(ArgumentError) do Topic.validates_format_of(:title, :with => /^Valid Title$/, :multiline => true) |