avoid ruby 1.9.2 warning in spec

This commit is contained in:
Adam Meehan 2010-10-14 07:58:23 +11:00
parent 316086e76f
commit 1bf068392e

View File

@ -102,8 +102,8 @@ describe ValidatesTimeliness::Conversion do
end end
describe "with custom dummy date" do describe "with custom dummy date" do
before(:all) do before do
@@original_dummy_date = ValidatesTimeliness.dummy_date_for_time_type @original_dummy_date = ValidatesTimeliness.dummy_date_for_time_type
ValidatesTimeliness.dummy_date_for_time_type = [2010, 1, 1] ValidatesTimeliness.dummy_date_for_time_type = [2010, 1, 1]
end end
@ -111,8 +111,8 @@ describe ValidatesTimeliness::Conversion do
dummy_time(Time.utc(1999, 11, 22, 12, 34, 56)).should == Time.utc(2010, 1, 1, 12, 34, 56) dummy_time(Time.utc(1999, 11, 22, 12, 34, 56)).should == Time.utc(2010, 1, 1, 12, 34, 56)
end end
after(:all) do after do
ValidatesTimeliness.dummy_date_for_time_type = @@original_dummy_date ValidatesTimeliness.dummy_date_for_time_type = @original_dummy_date
end end
end end
end end