renamed methods which have been moved out of AR and so dont need to be fully qualified

This commit is contained in:
Adam Meehan
2008-12-02 20:34:02 +11:00
parent d71f581e10
commit 3ac65b507f
4 changed files with 10 additions and 10 deletions

View File

@@ -376,11 +376,11 @@ describe ValidatesTimeliness::ValidationMethods do
end
before :all do
ValidatesTimeliness.ignore_datetime_restriction_errors = true
ValidatesTimeliness.ignore_restriction_errors = true
end
after :all do
ValidatesTimeliness.ignore_datetime_restriction_errors = false
ValidatesTimeliness.ignore_restriction_errors = false
end
before :each do
@@ -426,7 +426,7 @@ describe ValidatesTimeliness::ValidationMethods do
describe "custom formats" do
before :all do
ValidatesTimeliness.date_time_error_value_formats = {
ValidatesTimeliness.error_value_formats = {
:time => '%H:%M %p',
:date => '%d-%m-%Y',
:datetime => '%d-%m-%Y %H:%M %p'