spec/importers/wordpress_spec.rb in storytime-1.0.1 vs spec/importers/wordpress_spec.rb in storytime-1.0.2
- old
+ new
@@ -30,10 +30,10 @@
expect(posts[2].published_at).to eq(Time.strptime("Mon, 28 Jul 2014 02:43:07 +0000", "%a, %d %b %Y %H:%M:%S %z"))
expect(posts[3].title).to eq("this is a draft post")
expect(posts[3].content).to match("this is the content of a draft post")
expect(posts[3].user).to eq(user)
- expect(posts[3].created_at.to_date).to eq(Date.today)
+ expect(posts[3].created_at.to_date).to eq(Time.now.utc.to_date)
expect(posts[3].published_at).to be_nil
end
end
end
\ No newline at end of file