-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Renata Marques
authored and
Renata Marques
committed
Dec 7, 2019
1 parent
3b513dc
commit 69451b2
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require "rails_helper" | ||
|
||
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 | ||
|
||
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 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') | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'home page', type: :request do | ||
describe "GET /root" do | ||
it "works!" do | ||
get root_path | ||
expect(response).to have_http_status(200) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe PagesController, type: :routing do | ||
describe "routing" do | ||
it "routes to #home" do | ||
expect(:get => "/").to route_to("pages#home") | ||
end | ||
end | ||
end |