Commit b5d5da7b authored by Mike Greiling's avatar Mike Greiling

add InspectRequests helper automatically to :js tests

parent 61865cfc
require 'spec_helper' require 'spec_helper'
feature 'Environment' do feature 'Environment' do
include InspectRequests
given(:project) { create(:project) } given(:project) { create(:project) }
given(:user) { create(:user) } given(:user) { create(:user) }
given(:role) { :developer } given(:role) { :developer }
......
...@@ -2,8 +2,6 @@ require 'spec_helper' ...@@ -2,8 +2,6 @@ require 'spec_helper'
require 'tempfile' require 'tempfile'
feature 'Jobs' do feature 'Jobs' do
include InspectRequests
let(:user) { create(:user) } let(:user) { create(:user) }
let(:user_access_level) { :developer } let(:user_access_level) { :developer }
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
...@@ -2,7 +2,6 @@ require 'rails_helper' ...@@ -2,7 +2,6 @@ require 'rails_helper'
feature 'User creates snippet', :js do feature 'User creates snippet', :js do
include DropzoneHelper include DropzoneHelper
include InspectRequests
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -50,6 +50,7 @@ RSpec.configure do |config| ...@@ -50,6 +50,7 @@ RSpec.configure do |config|
config.include SearchHelpers, type: :feature config.include SearchHelpers, type: :feature
config.include CookieHelper, :js config.include CookieHelper, :js
config.include InputHelper, :js config.include InputHelper, :js
config.include InspectRequests, :js
config.include WaitForRequests, :js config.include WaitForRequests, :js
config.include StubConfiguration config.include StubConfiguration
config.include EmailHelpers, :mailer, type: :mailer config.include EmailHelpers, :mailer, type: :mailer
......
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