Commit e404ab51 authored by Shinya Maeda's avatar Shinya Maeda

Prefered single quote. Fix have_http_status(:ok)

parent f237cad8
...@@ -493,23 +493,23 @@ feature 'Builds', :feature do ...@@ -493,23 +493,23 @@ feature 'Builds', :feature do
it { expect(page.status_code).to eq(404) } it { expect(page.status_code).to eq(404) }
end end
context "when Project is public and builds_access_level is Everyone with access" do context 'when Project is public and builds_access_level is Everyone with access' do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
before do before do
project.project_feature.update_attribute('builds_access_level', ProjectFeature::ENABLED) project.project_feature.update_attribute('builds_access_level', ProjectFeature::ENABLED)
end end
context "when user belongs to the project" do context 'when user belongs to the project' do
before do before do
visit trace_namespace_project_build_path(project.namespace, project, build, format: :json) visit trace_namespace_project_build_path(project.namespace, project, build, format: :json)
end end
it 'traces build log' do it 'traces build log' do
expect(page.status_code).to eq(200) expect(page).to have_http_status(:ok)
end end
end end
context "when user does not belong to the project" do context 'when user does not belong to the project' do
let(:non_member) { create(:user) } let(:non_member) { create(:user) }
before do before do
...@@ -519,7 +519,7 @@ feature 'Builds', :feature do ...@@ -519,7 +519,7 @@ feature 'Builds', :feature do
end end
it 'traces build log' do it 'traces build log' do
expect(page.status_code).to eq(200) expect(page).to have_http_status(:ok)
end end
end end
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