Skip to content

Commit

Permalink
fixing identation and specs message
Browse files Browse the repository at this point in the history
  • Loading branch information
Renata Marques committed Dec 19, 2019
1 parent 811c365 commit 0fc71c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions spec/features/pages/pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion spec/requests/entries_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/home_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fc71c4

Please sign in to comment.