From b5d5da7b6f2076bbd72d929ae84dbd00582ff365 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 2 Nov 2017 10:27:15 -0500 Subject: [PATCH] add InspectRequests helper automatically to :js tests --- spec/features/projects/environments/environment_spec.rb | 2 -- spec/features/projects/jobs_spec.rb | 2 -- spec/features/snippets/user_creates_snippet_spec.rb | 1 - spec/spec_helper.rb | 1 + 4 files changed, 1 insertion(+), 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