diff options
author | kushalpandya <kushal@gitlab.com> | 2017-05-31 14:40:30 +0300 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-05-31 14:40:30 +0300 |
commit | c3c644c722dc2f0887067dbba68e43d91e610f62 (patch) | |
tree | d086e8dff571573f065904f84ef293772bd8301d /spec | |
parent | a57e6a8b760d79a0a2adca8cce0547928599e3cb (diff) |
Prometheus Service Fixture Generator
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/fixtures/prometheus_service.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/prometheus_service.rb b/spec/javascripts/fixtures/prometheus_service.rb new file mode 100644 index 00000000000..7dfbf885fbd --- /dev/null +++ b/spec/javascripts/fixtures/prometheus_service.rb @@ -0,0 +1,31 @@ +require 'spec_helper' + +describe Projects::ServicesController, '(JavaScript fixtures)', type: :controller do + include JavaScriptFixturesHelpers + + let(:admin) { create(:admin) } + let(:namespace) { create(:namespace, name: 'frontend-fixtures' )} + let(:project) { create(:project_empty_repo, namespace: namespace, path: 'services-project') } + let!(:service) { create(:prometheus_service, project: project) } + + + render_views + + before(:all) do + clean_frontend_fixtures('services/') + end + + before(:each) do + sign_in(admin) + end + + it 'services/prometheus_service.html.raw' do |example| + get :edit, + namespace_id: namespace, + project_id: project, + id: service.to_param + + expect(response).to be_success + store_frontend_fixture(response, example.description) + end +end |