From 0fc71c439cd1223883f84a1d8cda627b8f4db216 Mon Sep 17 00:00:00 2001 From: Renata Marques Date: Thu, 19 Dec 2019 09:47:19 -0300 Subject: [PATCH] fixing identation and specs message --- spec/features/pages/pages_spec.rb | 30 +++++++++++++++--------------- spec/requests/entries_spec.rb | 2 +- spec/requests/home_spec.rb | 2 +- spec/requests/users_spec.rb | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/spec/features/pages/pages_spec.rb b/spec/features/pages/pages_spec.rb index 17c03e6..b7ee264 100644 --- a/spec/features/pages/pages_spec.rb +++ b/spec/features/pages/pages_spec.rb @@ -2,29 +2,29 @@ RSpec.describe 'home page', type: :feature do describe 'texts in home page' do - + before { visit root_path } context 'match texts in home page' do it 'expect correct title' do - expect(page).to have_content('Projeto Carambolo!') - end + expect(page).to have_content('Projeto Carambolo!') + end - it 'expect correct description' do - expect(page).to have_content('Um projeto pela vida') - end + it 'expect correct description' do + expect(page).to have_content('Um projeto pela vida') + end - it 'expect correct section about' do - expect(page).to have_content('Sobre') - end + it 'expect correct section about' do + expect(page).to have_content('Sobre') + end - it 'expect correct section projects' do - expect(page).to have_content('Projetos') - end + it 'expect correct section projects' do + expect(page).to have_content('Projetos') + end - it 'expect correct article' do - expect(page).to have_content('Artigo sobre a técnica das três colunas') + it 'expect correct article' do + expect(page).to have_content('Artigo sobre a técnica das três colunas') + end end - end end end diff --git a/spec/requests/entries_spec.rb b/spec/requests/entries_spec.rb index dc3cb45..d9311a6 100644 --- a/spec/requests/entries_spec.rb +++ b/spec/requests/entries_spec.rb @@ -2,7 +2,7 @@ RSpec.describe "Entries", type: :request do describe "GET /entries" do - it "works!" do + it "returns the correct response code" do get entries_path expect(response).to have_http_status(200) end diff --git a/spec/requests/home_spec.rb b/spec/requests/home_spec.rb index 0c0a3b2..e4bdb10 100644 --- a/spec/requests/home_spec.rb +++ b/spec/requests/home_spec.rb @@ -2,7 +2,7 @@ RSpec.describe "Home", type: :request do describe "GET /home" do - it "works! (now write some real specs)" do + it "returns the correct response code" do get root_path expect(response).to have_http_status(200) end diff --git a/spec/requests/users_spec.rb b/spec/requests/users_spec.rb index 0e0184d..736f780 100644 --- a/spec/requests/users_spec.rb +++ b/spec/requests/users_spec.rb @@ -2,7 +2,7 @@ RSpec.describe "Users", type: :request do describe "GET /users" do - it "works!" do + it "returns the correct response code" do get users_path expect(response).to have_http_status(200) end