From b82ecbd18c5e4f86788aa05498a9327533f08b94 Mon Sep 17 00:00:00 2001 From: Renata Marques Date: Sun, 8 Dec 2019 18:42:35 -0300 Subject: [PATCH] adding required changes --- spec/requests/pages_spec.rb | 4 ++-- spec/routing/pages_routing_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/pages_spec.rb b/spec/requests/pages_spec.rb index de2b75f..c8739d8 100644 --- a/spec/requests/pages_spec.rb +++ b/spec/requests/pages_spec.rb @@ -1,8 +1,8 @@ -require 'rails_helper' +require "rails_helper" RSpec.describe 'home page', type: :request do describe "GET /root" do - it "works!" do + it "returns the correct response code" do get root_path expect(response).to have_http_status(200) end diff --git a/spec/routing/pages_routing_spec.rb b/spec/routing/pages_routing_spec.rb index 17931ed..c313258 100644 --- a/spec/routing/pages_routing_spec.rb +++ b/spec/routing/pages_routing_spec.rb @@ -3,7 +3,7 @@ RSpec.describe PagesController, type: :routing do describe "routing" do it "routes to #home" do - expect(:get => "/").to route_to("pages#home") + expect(get: "/").to route_to("pages#home") end end end