diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-11-02 10:27:15 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-11-02 10:27:15 -0500 |
commit | b5d5da7b6f2076bbd72d929ae84dbd00582ff365 (patch) | |
tree | 6385ce82854e5bb97f748ef5e7811684e73974a5 | |
parent | 61865cfc935d760374c5bf6f8c538b3282b91e8b (diff) | |
download | gitlab-ce-b5d5da7b6f2076bbd72d929ae84dbd00582ff365.tar.gz |
add InspectRequests helper automatically to :js tests
-rw-r--r-- | spec/features/projects/environments/environment_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/projects/jobs_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/snippets/user_creates_snippet_spec.rb | 1 | ||||
-rw-r--r-- | spec/spec_helper.rb | 1 |
4 files changed, 1 insertions, 5 deletions
diff --git a/spec/features/projects/environments/environment_spec.rb b/spec/features/projects/environments/environment_spec.rb index e0fc60e45ae..5fc3ba54f65 100644 --- a/spec/features/projects/environments/environment_spec.rb +++ b/spec/features/projects/environments/environment_spec.rb @@ -1,8 +1,6 @@ require 'spec_helper' feature 'Environment' do - include InspectRequests - given(:project) { create(:project) } given(:user) { create(:user) } given(:role) { :developer } diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index 5e1d81184b5..c2a0d2395a9 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -2,8 +2,6 @@ require 'spec_helper' require 'tempfile' feature 'Jobs' do - include InspectRequests - let(:user) { create(:user) } let(:user_access_level) { :developer } let(:project) { create(:project, :repository) } diff --git a/spec/features/snippets/user_creates_snippet_spec.rb b/spec/features/snippets/user_creates_snippet_spec.rb index 5020eb7d137..941765b7578 100644 --- a/spec/features/snippets/user_creates_snippet_spec.rb +++ b/spec/features/snippets/user_creates_snippet_spec.rb @@ -2,7 +2,6 @@ require 'rails_helper' feature 'User creates snippet', :js do include DropzoneHelper - include InspectRequests let(:user) { create(:user) } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8b8c699bf85..97bd7257e47 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -50,6 +50,7 @@ RSpec.configure do |config| config.include SearchHelpers, type: :feature config.include CookieHelper, :js config.include InputHelper, :js + config.include InspectRequests, :js config.include WaitForRequests, :js config.include StubConfiguration config.include EmailHelpers, :mailer, type: :mailer |