Commit ba7551cb authored by Mike Greiling's avatar Mike Greiling

fix broken references to page.status_code

parent 925c9d7e
......@@ -15,9 +15,11 @@ describe 'Admin::AuditLogs', :js do
end
it 'returns 404' do
visit admin_audit_logs_path
reqs = inspect_requests do
visit admin_audit_logs_path
end
expect(page.status_code).to eq(404)
expect(reqs.first.status_code).to eq(404)
end
end
......
......@@ -17,9 +17,11 @@ feature 'Groups > Audit Events', :js do
end
it 'returns 404' do
visit group_audit_events_path(group)
reqs = inspect_requests do
visit group_audit_events_path(group)
end
expect(page.status_code).to eq(404)
expect(reqs.first.status_code).to eq(404)
end
it 'does not have Audit Events button in head nav bar' do
......
......@@ -16,9 +16,11 @@ feature 'Projects > Audit Events', :js do
end
it 'returns 404' do
visit project_audit_events_path(project)
reqs = inspect_requests do
visit project_audit_events_path(project)
end
expect(page.status_code).to eq(404)
expect(reqs.first.status_code).to eq(404)
end
it 'does not have Audit Events button in head nav bar' do
......@@ -37,9 +39,11 @@ feature 'Projects > Audit Events', :js do
end
it 'returns 200' do
visit project_audit_events_path(project)
reqs = inspect_requests do
visit project_audit_events_path(project)
end
expect(page.status_code).to eq(200)
expect(reqs.first.status_code).to eq(200)
end
it 'does not have Audit Events button in head nav bar' do
......
......@@ -18,9 +18,11 @@ feature 'Project mirror', :js do
end
it 'returns 404' do
visit project_mirror_path(project)
reqs = inspect_requests do
visit project_mirror_path(project)
end
expect(page.status_code).to eq(404)
expect(reqs.first.status_code).to eq(404)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment