-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
32 additions
and
6 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
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,27 @@ | ||
require 'features_helper' | ||
|
||
describe 'Visit Home Page' do | ||
it 'has title Lotus Tutorial' do | ||
visit '/' | ||
expect(page).to have_content('Lotus Tutorial') | ||
end | ||
|
||
context 'user has not signed in' do | ||
before do | ||
visit '/' | ||
end | ||
it 'has login form' do | ||
expect(page).to have_selector("form#login-form") | ||
expect(page).to have_selector('form#login-form input#email') | ||
expect(page).to have_selector('form#login-form input#password[type=password]') | ||
end | ||
|
||
it 'has "Please sign in to see your tweets" sentence' do | ||
expect(page).to have_content("Please sign in to see your tweets") | ||
end | ||
|
||
it 'has Sign Up button' do | ||
expect(page).to have_link('Sign Up') | ||
end | ||
end | ||
end |