lib/knapsack_pro/config/env.rb in knapsack_pro-2.0.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-2.1.0

- old
+ new

@@ -177,9 +177,13 @@ def rspec_split_by_test_examples? rspec_split_by_test_examples.to_s == 'true' end + def rspec_test_example_detector_prefix + ENV.fetch('KNAPSACK_PRO_RSPEC_TEST_EXAMPLE_DETECTOR_PREFIX', 'bundle exec') + end + def 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