Sha256: f76e96f28370a58a7a87f0927d99ffdd3d3f99b0890d589f36035a828f252364
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'spec_helper' describe UniversalValidators::DateTimeValidator do describe '.valid?' do context 'with valid date time' do it "return true" do date_time = UniversalValidators::DateTimeValidator.new('2015-02-25 12:33') expect(date_time).to be_valid end end context 'with invalid date time' do it "return false" do date_time = UniversalValidators::DateTimeValidator.new('2015-02-25 12:133') expect(date_time).to_not be_valid end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
universal_validators-1.0.0 | spec/date_time_validator_spec.rb |