Skip to content

Commit

Permalink
adding required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Renata Marques authored and Renata Marques committed Dec 8, 2019
1 parent 69451b2 commit b82ecbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/requests/pages_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/routing/pages_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b82ecbd

Please sign in to comment.