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:
parent
56d8210984
commit
62b33da585
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue