require present value for knapsack enabled env

Change-Id: I0f4b3e1da3cd78a93e052f81ec8cd96b51804d33
Reviewed-on: https://gerrit.instructure.com/209673
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
James Williams 2019-09-16 13:12:16 -06:00
parent 56d8210984
commit 62b33da585
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ Bundler.require(:i18n_tools)
CanvasRails::Application.load_tasks
if ENV['KNAPSACK_ENABLED'] && defined?(Knapsack)
if ENV['KNAPSACK_ENABLED'] == '1' && defined?(Knapsack)
require 'spec/support/knapsack_extensions'
Knapsack.load_tasks
end

View File

@ -21,7 +21,7 @@ begin
rescue LoadError
end
if ENV['KNAPSACK_ENABLED']
if ENV['KNAPSACK_ENABLED'] == '1'
puts "DEBUGGING FOR KNAPSACK: rspec run with args: #{ARGV}"
require 'knapsack'
Knapsack::Adapters::RSpecAdapter.bind