public
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/halorgium/mephisto.git
Search Repo:
merrrge
technoweenie (author)
Mon Mar 10 23:51:29 -0700 2008
commit  2c6ad21d8f0e91dc89f7a3e8426d6bb5deb2b0b3
tree    64515c9d37ce88130e07c834130bcd1cd1869028
parent  667a1c0b0e37ac5da7c1e6ca629b118084e6b6eb
...
111
112
113
114
 
115
116
117
118
 
119
120
121
...
174
175
176
177
 
178
179
180
...
111
112
113
 
114
115
116
117
 
118
119
120
121
...
174
175
176
 
177
178
179
180
0
@@ -111,11 +111,11 @@
0
 
0
   def test_comment_expiration_date
0
     a = create_fake_article
0
- assert_equal 5.days.from_now.utc.to_i, a.comments_expired_at.to_i
0
+ assert_equal((a.published_at + 10.days), a.comments_expired_at)
0
   end
0
 
0
   def test_comment_expiry
0
- a = create_fake_article(5.days.from_now)
0
+ a = create_fake_article(5.days.from_now.utc)
0
     assert !a.accept_comments?
0
     a.published_at = 5.days.ago.utc
0
     assert a.accept_comments?
0
@@ -174,7 +174,7 @@
0
       Article.create options.reverse_merge(:user_id => 1, :site_id => 1, :title => 'foo')
0
     end
0
     
0
- def create_fake_article(time = 5.days.ago)
0
+ def create_fake_article(time = 5.days.ago.utc)
0
       returning Article.new(:comment_age => 10, :published_at => time.utc) do |a|
0
         def a.new_record?() false ; end
0
       end

Comments

    No one has commented yet.