mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 06:16:44 +00:00
removed some time_travel setup which are not used here
This commit is contained in:
parent
2ba85772b6
commit
e82b1e2033
@ -3,15 +3,6 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|||||||
describe ValidatesTimeliness::ValidationMethods do
|
describe ValidatesTimeliness::ValidationMethods do
|
||||||
attr_accessor :person
|
attr_accessor :person
|
||||||
|
|
||||||
before :all do
|
|
||||||
# freezes time using time_travel plugin
|
|
||||||
Time.now = Time.utc(2000, 1, 1, 0, 0, 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
after :all do
|
|
||||||
Time.now = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
describe "parse_date_time" do
|
describe "parse_date_time" do
|
||||||
it "should return time object for valid time string" do
|
it "should return time object for valid time string" do
|
||||||
parse_method("2000-01-01 12:13:14", :datetime).should be_kind_of(Time)
|
parse_method("2000-01-01 12:13:14", :datetime).should be_kind_of(Time)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user