-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
2d21dc4
commit 6fd20d5
Showing
2 changed files
with
16 additions
and
16 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 |
---|---|---|
|
@@ -25,15 +25,15 @@ def sign_in_user(admin) | |
|
||
it 'displays an profile page' do | ||
render | ||
expect(rendered).to have_text('Profile') | ||
expect(rendered).to have_text(' Email') | ||
expect(rendered).to have_text('[email protected]') | ||
expect(rendered).to include('Profile') | ||
expect(rendered).to include(' Email') | ||
expect(rendered).to include('[email protected]') | ||
end | ||
|
||
it 'displays an user management tab' do | ||
render | ||
expect(rendered).to have_text('User Management') | ||
expect(rendered).to have_text('Admin Test') | ||
expect(rendered).to include('User Management') | ||
expect(rendered).to include('Admin Test') | ||
end | ||
end | ||
|
||
|
@@ -60,15 +60,15 @@ def sign_in_user(admin) | |
|
||
it 'displays an profile page' do | ||
render | ||
expect(rendered).to have_text('Profile') | ||
expect(rendered).to have_text(' Email') | ||
expect(rendered).to have_text('[email protected]') | ||
expect(rendered).to include('Profile') | ||
expect(rendered).to include(' Email') | ||
expect(rendered).to include('[email protected]') | ||
end | ||
|
||
it 'displays an user management tab' do | ||
render | ||
expect(rendered).to have_text('User Management') | ||
expect(rendered).to have_text("You don't have sufficient privileges to view this content !") | ||
expect(rendered).to include('User Management') | ||
expect(rendered.squish).to include("You don't have sufficient privileges to view this content!") | ||
end | ||
end | ||
|
||
|
@@ -95,14 +95,14 @@ def sign_in_user(admin) | |
|
||
it 'displays an profile page' do | ||
render | ||
expect(rendered).to have_text('Profile') | ||
expect(rendered).to have_text(' Email') | ||
expect(rendered).to have_text('[email protected]') | ||
expect(rendered).to include('Profile') | ||
expect(rendered).to include(' Email') | ||
expect(rendered).to include('[email protected]') | ||
end | ||
|
||
it 'displays an user management tab' do | ||
render | ||
expect(rendered).to have_text('User Management') | ||
expect(rendered).to have_text("You don't have sufficient privileges to view this content !") | ||
expect(rendered).to include('User Management') | ||
expect(rendered.squish).to include("You don't have sufficient privileges to view this content!") | ||
end | ||
end |