Permalink
Browse files

The timestamp of a Page should be a DateTime.

  • Loading branch information...
1 parent 3c581e5 commit 41aa177a1c7e6cdae4ae5e94f24225756e03b357 @kevintuhumury kevintuhumury committed Mar 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cameraplus/page.rb
  2. +1 −1 spec/cameraplus/page_spec.rb
View
@@ -17,7 +17,7 @@ def parse
def parse_page
@url = @data.url
- @timestamp = @data.timestamp
+ @timestamp = DateTime.parse(@data.timestamp)
@location = @data.location
@location_name = @data.locationname
@tweet_text = @data.tweettext
@@ -36,7 +36,7 @@
end
it "has a timestamp" do
- subject.timestamp.should eq "2012-03-14 22:53:49"
+ subject.timestamp.should eq DateTime.parse("2012-03-14 22:53:49")
end
it "has a location" do

0 comments on commit 41aa177

Please sign in to comment.