Sha256: ef4ccbac5c8a49add980cedc91547e3ae41c07542a75cfa24caf2d27540a84b7
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require 'test_helper' require 'active_support/core_ext/hash/reverse_merge' # ActiveValidators relies on another gem called "date_validator" edited # by the fine folks at Codegram. # # If you wanna see tests for this gem, go take a look at the repository # [on Github](https://github.com/codegram/date_validator) describe "Date Validation" do it "finds the translations" do TestRecord.validates :start_date, :date => {:before => :end_date } d = TestRecord.new(:start_date => Time.now, :end_date => Time.now - 1) refute d.valid? refute_includes d.errors.to_s, 'translation missing' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activevalidators-2.1.0 | test/validations/date_test.rb |