fix post spec
This commit is contained in:
parent
7253f190b5
commit
7f3c4c209e
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ describe Post do
|
|||
describe ".older" do
|
||||
it 'returns the previous post in the array' do
|
||||
Post.older(@posts[3]).created_at.to_s.should == @posts[4].created_at.to_s #its the older post, not the oldest
|
||||
@post[3].created_at.should > @post[4].created_at #post 4 is older
|
||||
@posts[3].created_at.should > @posts[4].created_at #post 4 is older
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue