Commit cf33353b authored by Winnie Hellmann's avatar Winnie Hellmann

Remove duplicate store_frontend_fixture() calls

for f in $(find spec/javascripts/fixtures/ -name '*.rb')
do
  grep -v store_frontend_fixture < $f > $f.tmp; mv $f.tmp $f
done
parent 66cd2e97
......@@ -22,6 +22,5 @@ describe Admin::AbuseReportsController, '(JavaScript fixtures)', type: :controll
get :index
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -24,6 +24,5 @@ describe Admin::UsersController, '(JavaScript fixtures)', type: :controller do
get :new
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -29,6 +29,5 @@ describe Admin::ApplicationSettingsController, '(JavaScript fixtures)', type: :c
get :show
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -35,6 +35,5 @@ describe Projects::AutocompleteSourcesController, '(JavaScript fixtures)', type:
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -30,6 +30,5 @@ describe Projects::BlobController, '(JavaScript fixtures)', type: :controller do
})
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -24,6 +24,5 @@ describe Projects::BoardsController, '(JavaScript fixtures)', type: :controller
})
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -28,6 +28,5 @@ describe Projects::BranchesController, '(JavaScript fixtures)', type: :controlle
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -30,6 +30,5 @@ describe Projects::ClustersController, '(JavaScript fixtures)', type: :controlle
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -29,6 +29,5 @@ describe Projects::CommitController, '(JavaScript fixtures)', type: :controller
get :show, params: params
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -39,6 +39,5 @@ describe Projects::DeployKeysController, '(JavaScript fixtures)', type: :control
}, format: :json
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -22,7 +22,6 @@ describe 'Groups (JavaScript fixtures)', type: :controller do
get :edit, params: { id: group }
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -31,7 +30,6 @@ describe 'Groups (JavaScript fixtures)', type: :controller do
get :show, params: { group_id: group }
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
end
......@@ -49,7 +49,6 @@ describe Projects::IssuesController, '(JavaScript fixtures)', type: :controller
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
private
......@@ -62,7 +61,6 @@ describe Projects::IssuesController, '(JavaScript fixtures)', type: :controller
}
expect(response).to be_success
store_frontend_fixture(response, fixture_file_name)
end
end
......@@ -120,6 +118,5 @@ describe API::Issues, '(JavaScript fixtures)', type: :request do
get_related_merge_requests(project.id, issue.iid, user)
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -40,7 +40,6 @@ describe Projects::JobsController, '(JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
it 'jobs/delayed.json' do |example|
......@@ -51,6 +50,5 @@ describe Projects::JobsController, '(JavaScript fixtures)', type: :controller do
}, format: :json
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -36,7 +36,6 @@ describe 'Labels (JavaScript fixtures)' do
}, format: 'json'
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -54,7 +53,6 @@ describe 'Labels (JavaScript fixtures)' do
}, format: 'json'
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
end
......@@ -121,7 +121,6 @@ describe Projects::MergeRequestsController, '(JavaScript fixtures)', type: :cont
id: merge_request.to_param
}, format: :json
store_frontend_fixture(response, fixture_file_name)
end
def render_merge_request(fixture_file_name, merge_request)
......@@ -132,6 +131,5 @@ describe Projects::MergeRequestsController, '(JavaScript fixtures)', type: :cont
}, format: :html
expect(response).to be_success
store_frontend_fixture(response, fixture_file_name)
end
end
......@@ -66,6 +66,5 @@ describe Projects::MergeRequests::DiffsController, '(JavaScript fixtures)', type
}, format: :json
expect(response).to be_success
store_frontend_fixture(response, fixture_file_name)
end
end
......@@ -29,7 +29,6 @@ describe Projects::PipelineSchedulesController, '(JavaScript fixtures)', type: :
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
it 'pipeline_schedules/edit_with_variables.html' do |example|
......@@ -40,6 +39,5 @@ describe Projects::PipelineSchedulesController, '(JavaScript fixtures)', type: :
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -30,6 +30,5 @@ describe Projects::PipelinesController, '(JavaScript fixtures)', type: :controll
}, format: :json
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -35,7 +35,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
it 'projects/overview.html' do |example|
......@@ -45,7 +44,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
it 'projects/edit.html' do |example|
......@@ -55,7 +53,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -67,7 +64,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
it 'projects/ci_cd_settings_with_variables.html' do |example|
......@@ -80,7 +76,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
end
......@@ -30,6 +30,5 @@ describe Projects::ServicesController, '(JavaScript fixtures)', type: :controlle
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -20,30 +20,25 @@ describe 'Raw files', '(JavaScript fixtures)' do
it 'blob/balsamiq/test.bmpr' do |example|
@blob = project.repository.blob_at('b89b56d79', 'files/images/balsamiq.bmpr')
store_frontend_fixture(response, example.description)
end
it 'blob/notebook/basic.json' do |example|
@blob = project.repository.blob_at('6d85bb69', 'files/ipython/basic.ipynb')
store_frontend_fixture(response, example.description)
end
it 'blob/notebook/worksheets.json' do |example|
@blob = project.repository.blob_at('6d85bb69', 'files/ipython/worksheets.ipynb')
store_frontend_fixture(response, example.description)
end
it 'blob/notebook/math.json' do |example|
@blob = project.repository.blob_at('93ee732', 'files/ipython/math.ipynb')
store_frontend_fixture(response, example.description)
end
it 'blob/pdf/test.pdf' do |example|
@blob = project.repository.blob_at('e774ebd33', 'files/pdf/test.pdf')
store_frontend_fixture(response, example.description)
end
end
......@@ -13,6 +13,5 @@ describe SearchController, '(JavaScript fixtures)', type: :controller do
get :show
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -30,6 +30,5 @@ describe Projects::ServicesController, '(JavaScript fixtures)', type: :controlle
}
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -20,7 +20,6 @@ describe 'Sessions (JavaScript fixtures)' do
get :new
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
end
......@@ -29,6 +29,5 @@ describe SnippetsController, '(JavaScript fixtures)', type: :controller do
get(:show, params: { id: snippet.to_param })
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -30,7 +30,6 @@ describe 'Todos (JavaScript fixtures)' do
get :index
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -50,7 +49,6 @@ describe 'Todos (JavaScript fixtures)' do
}, format: 'json'
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
end
......@@ -24,7 +24,6 @@ context 'U2F' do
post :create, params: { user: { login: user.username, password: user.password } }
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
......@@ -40,7 +39,6 @@ context 'U2F' do
get :show
expect(response).to be_success
store_frontend_fixture(response, example.description)
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