add InspectRequests helper automatically to :js tests

This commit is contained in:
Mike Greiling 2017-11-02 10:27:15 -05:00
parent 61865cfc93
commit b5d5da7b6f
No known key found for this signature in database
GPG key ID: 0303DF507FA67596
4 changed files with 1 additions and 5 deletions

View file

@ -1,8 +1,6 @@
require 'spec_helper'
feature 'Environment' do
include InspectRequests
given(:project) { create(:project) }
given(:user) { create(:user) }
given(:role) { :developer }

View file

@ -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) }

View file

@ -2,7 +2,6 @@ require 'rails_helper'
feature 'User creates snippet', :js do
include DropzoneHelper
include InspectRequests
let(:user) { create(:user) }

View file

@ -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