Permalink
Browse files

fix spec timezone problem

  • Loading branch information...
yayugu committed Dec 20, 2011
1 parent 3d82531 commit f3ce4780ad3f3bc273383cbefeabd358e00174ab
Showing with 3 additions and 6 deletions.
  1. +2 −5 db/spec_seeds.rb
  2. +1 −1 spec/app_spec.rb
View
@@ -62,17 +62,14 @@
:tag_context => "tags",
:tag_id => 1)
-# lokka can mix timezones
-# lokka see only date and hours, ignore UTC offsets
-
# post after 1 minutes
# id 3
Entry.create!(:user_id => 3,
:title => "Test Post2",
:body => "Test Post2",
:type => "Post",
- :created_at => created_at_tokyo + 1.minutes,
- :updated_at => created_at_tokyo + 1.minutes)
+ :created_at => created_at + 1.minutes,
+ :updated_at => created_at + 1.minutes)
# page
# id 4
View
@@ -15,7 +15,7 @@
it "entries is sort by created_at in descending" do
get '/'
- body = last_response.body
+ body = last_response.body
(body.index(/Test Post2/) < body.index(/Test Post[^\d]/)).should be_true
end

0 comments on commit f3ce478

Please sign in to comment.