diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 359a3d48..34f103be 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -33,7 +33,7 @@ sure?' } %>
<% else %>
-
You don't have sufficient privileges to view this content !
Please contact the administrator for more
+
You don't have sufficient privileges to view this content!
Please contact the administrator for more
details.
<% end %>
diff --git a/spec/views/front/profile.html.erb_spec.rb b/spec/views/front/profile.html.erb_spec.rb
index 13295f6d..831a2072 100644
--- a/spec/views/front/profile.html.erb_spec.rb
+++ b/spec/views/front/profile.html.erb_spec.rb
@@ -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('admin@ucmail.uc.edu')
+ expect(rendered).to include('Profile')
+ expect(rendered).to include(' Email')
+ expect(rendered).to include('admin@ucmail.uc.edu')
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('viewer@uc.edu')
+ expect(rendered).to include('Profile')
+ expect(rendered).to include(' Email')
+ expect(rendered).to include('viewer@uc.edu')
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('manager@mail.uc.edu')
+ expect(rendered).to include('Profile')
+ expect(rendered).to include(' Email')
+ expect(rendered).to include('manager@mail.uc.edu')
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