Skip to content
Snippets Groups Projects
Commit cf33353b authored by Winnie Hellmann's avatar Winnie Hellmann
Browse files

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
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 31 deletions
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -35,6 +35,5 @@ describe Projects::AutocompleteSourcesController, '(JavaScript fixtures)', type:
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
Loading
Loading
@@ -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
Loading
Loading
@@ -24,6 +24,5 @@ describe Projects::BoardsController, '(JavaScript fixtures)', type: :controller
})
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
Loading
Loading
@@ -28,6 +28,5 @@ describe Projects::BranchesController, '(JavaScript fixtures)', type: :controlle
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
Loading
Loading
@@ -30,6 +30,5 @@ describe Projects::ClustersController, '(JavaScript fixtures)', type: :controlle
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
Loading
Loading
@@ -49,7 +49,6 @@ describe Projects::IssuesController, '(JavaScript fixtures)', type: :controller
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
 
private
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
Loading
Loading
@@ -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|
Loading
Loading
@@ -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
Loading
Loading
@@ -36,7 +36,6 @@ describe 'Labels (JavaScript fixtures)' do
}, format: 'json'
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
 
Loading
Loading
@@ -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
Loading
Loading
@@ -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)
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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|
Loading
Loading
@@ -40,6 +39,5 @@ describe Projects::PipelineSchedulesController, '(JavaScript fixtures)', type: :
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
Loading
Loading
@@ -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
Loading
Loading
@@ -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|
Loading
Loading
@@ -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|
Loading
Loading
@@ -55,7 +53,6 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
 
Loading
Loading
@@ -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|
Loading
Loading
@@ -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
Loading
Loading
@@ -30,6 +30,5 @@ describe Projects::ServicesController, '(JavaScript fixtures)', type: :controlle
}
 
expect(response).to be_success
store_frontend_fixture(response, example.description)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment