DEV: remove a couple of warnings from spec
This commit is contained in:
parent
a00354f11f
commit
442111af91
|
@ -100,7 +100,7 @@ describe PostsController do
|
|||
it 'returns the expected post' do
|
||||
first_post = Fabricate(:post, created_at: 10.days.ago)
|
||||
second_post = Fabricate(:post, topic: first_post.topic, created_at: 4.days.ago)
|
||||
third_post = Fabricate(:post, topic: first_post.topic, created_at: 3.days.ago)
|
||||
_third_post = Fabricate(:post, topic: first_post.topic, created_at: 3.days.ago)
|
||||
|
||||
get "/posts/by-date/#{second_post.topic_id}/#{(second_post.created_at - 2.days).strftime("%Y-%m-%d")}.json"
|
||||
json = JSON.parse(response.body)
|
||||
|
@ -111,7 +111,7 @@ describe PostsController do
|
|||
|
||||
it 'returns no post if date is > at last created post' do
|
||||
get "/posts/by-date/#{post.topic_id}/2245-11-11.json"
|
||||
json = JSON.parse(response.body)
|
||||
_json = JSON.parse(response.body)
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue