lib/knapsack_pro/config/env.rb in knapsack_pro-0.36.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-0.37.0
- old
+ new
@@ -118,10 +118,11 @@
def fixed_queue_split
ENV.fetch('KNAPSACK_PRO_FIXED_QUEUE_SPLIT', false)
end
def test_suite_token
- required_env('KNAPSACK_PRO_TEST_SUITE_TOKEN')
+ env_name = 'KNAPSACK_PRO_TEST_SUITE_TOKEN'
+ ENV[env_name] || raise("Missing environment variable #{env_name}. You should set environment variable like #{env_name}_RSPEC (note there is suffix _RSPEC at the end). knapsack_pro gem will set #{env_name} based on #{env_name}_RSPEC value. If you use other test runner than RSpec then use proper suffix.")
end
def test_suite_token_rspec
ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC']
end