Skip to content

Commit 9595c04

Browse files
committed
reload the I18n at tests
1 parent 8bfa1d8 commit 9595c04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/date_validator_test.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ module Validations
1111

1212
it "checks validity of the arguments" do
1313
[3, "foo", 1..6].each do |wrong_argument|
14-
proc {
14+
proc {
1515
TestRecord.validates(:expiration_date, :date => {:before => wrong_argument})
1616
}.must_raise(ArgumentError, ":before must be a time, a date, a time_with_zone, a symbol or a proc")
1717
end
1818
end
1919

2020
it "complains when no options are provided" do
21+
I18n.backend.reload!
2122
TestRecord.validates :expiration_date,
2223
:date => {:before => Time.now}
2324

0 commit comments

Comments
 (0)