Permalink
Browse files

reload the I18n at tests

  • Loading branch information...
oriolgual committed Aug 6, 2011
1 parent 8bfa1d8 commit 9595c04c654f41e926cf5c07fbe68ec9162f377d
Showing with 2 additions and 1 deletion.
  1. +2 −1 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}

0 comments on commit 9595c04

Please sign in to comment.