Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reload the I18n at tests

  • Loading branch information...
commit 9595c04c654f41e926cf5c07fbe68ec9162f377d 1 parent 8bfa1d8
@oriolgual oriolgual authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/date_validator_test.rb
View
3  test/date_validator_test.rb
@@ -11,13 +11,14 @@ module Validations
it "checks validity of the arguments" do
[3, "foo", 1..6].each do |wrong_argument|
- proc {
+ proc {
TestRecord.validates(:expiration_date, :date => {:before => wrong_argument})
}.must_raise(ArgumentError, ":before must be a time, a date, a time_with_zone, a symbol or a proc")
end
end
it "complains when no options are provided" do
+ I18n.backend.reload!
TestRecord.validates :expiration_date,
:date => {:before => Time.now}
Please sign in to comment.
Something went wrong with that request. Please try again.