DEV: remove a couple of warnings from spec

DEV: remove a couple of warnings from spec

diff --git a/spec/requests/posts_controller_spec.rb b/spec/requests/posts_controller_spec.rb
index 534229d..cf96958 100644
--- a/spec/requests/posts_controller_spec.rb
+++ b/spec/requests/posts_controller_spec.rb
@@ -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

GitHub sha: 442111af

1 Like