refactors highlights

This commit is contained in:
Juanjo Bazán
2015-09-14 17:00:59 +02:00
parent 1e96bba262
commit 00f4acc7c2
7 changed files with 33 additions and 23 deletions

View File

@@ -15,7 +15,8 @@ feature 'Admin' do
login_as(user)
visit admin_root_path
expect(current_path).to eq(root_path)
expect(current_path).not_to eq(admin_root_path)
expect(current_path).to eq(highlights_path)
expect(page).to have_content "not authorized"
end
@@ -23,7 +24,8 @@ feature 'Admin' do
login_as(moderator)
visit admin_root_path
expect(current_path).to eq(root_path)
expect(current_path).not_to eq(admin_root_path)
expect(current_path).to eq(highlights_path)
expect(page).to have_content "not authorized"
end