refactors highlights
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user