Skip to content

Commit

Permalink
Fix date specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 19, 2012
1 parent d04c24e commit c2e90a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -24,15 +24,15 @@

#created_on
should: %s CLASS(time)
should: %s == Time.parse("2010-04-26 07:50:40 UTC")
should: %s == Time.parse("2010-04-26 07:50:40 GMT")

#updated_on
should: %s CLASS(time)
should: %s == Time.parse("2012-08-15 20:57:42")
should: %s == Time.parse("Wed Aug 15 18:57:42 GMT")

#expires_on
should: %s CLASS(time)
should: %s == Time.parse("2013-04-25 23:59:59 UTC")
should: %s == Time.parse("2013-04-25 23:59:59 GMT")


#registrar
Expand Down
Expand Up @@ -59,19 +59,19 @@
describe "#created_on" do
it do
subject.created_on.should be_a(Time)
subject.created_on.should == Time.parse("2010-04-26 07:50:40 UTC")
subject.created_on.should == Time.parse("2010-04-26 07:50:40 GMT")
end
end
describe "#updated_on" do
it do
subject.updated_on.should be_a(Time)
subject.updated_on.should == Time.parse("2012-08-15 20:57:42")
subject.updated_on.should == Time.parse("Wed Aug 15 18:57:42 GMT")
end
end
describe "#expires_on" do
it do
subject.expires_on.should be_a(Time)
subject.expires_on.should == Time.parse("2013-04-25 23:59:59 UTC")
subject.expires_on.should == Time.parse("2013-04-25 23:59:59 GMT")
end
end
describe "#registrar" do
Expand Down

0 comments on commit c2e90a7

Please sign in to comment.