mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
scope a spec to AR version
This commit is contained in:
parent
84316bc73a
commit
3f4615e053
@ -91,4 +91,11 @@ RSpec.configure do |c|
|
||||
reset_validation_setup_for(Person)
|
||||
reset_validation_setup_for(PersonWithShim)
|
||||
end
|
||||
|
||||
RSpec.configure do |c|
|
||||
c.filter_run_excluding :active_record => lambda {|version|
|
||||
!(::ActiveRecord::VERSION::STRING.to_s =~ /^#{version.to_s}/)
|
||||
}
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@ -47,7 +47,7 @@ describe ValidatesTimeliness, 'ActiveRecord' do
|
||||
r.birth_date = '2010-01-01'
|
||||
end
|
||||
|
||||
context "for a date column" do
|
||||
context "for a date column", :active_record => '3.0' do
|
||||
it 'should store a date value after parsing string' do
|
||||
r = EmployeeWithParser.new
|
||||
r.birth_date = '2010-01-01'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user