mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +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(Person)
|
||||||
reset_validation_setup_for(PersonWithShim)
|
reset_validation_setup_for(PersonWithShim)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RSpec.configure do |c|
|
||||||
|
c.filter_run_excluding :active_record => lambda {|version|
|
||||||
|
!(::ActiveRecord::VERSION::STRING.to_s =~ /^#{version.to_s}/)
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -47,7 +47,7 @@ describe ValidatesTimeliness, 'ActiveRecord' do
|
|||||||
r.birth_date = '2010-01-01'
|
r.birth_date = '2010-01-01'
|
||||||
end
|
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
|
it 'should store a date value after parsing string' do
|
||||||
r = EmployeeWithParser.new
|
r = EmployeeWithParser.new
|
||||||
r.birth_date = '2010-01-01'
|
r.birth_date = '2010-01-01'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user