spec/spec_helper.rb in stew-0.5.3 vs spec/spec_helper.rb in stew-0.6.0
- old
+ new
@@ -6,9 +6,21 @@
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start
+
+if File.exists?("spec/config.yml") == false
+ puts "Error. Please make sure that 'spec/config.yml' exists with the correct values before running the specs. See example file"
+ exit
+end
+
+config = YAML::load_file("spec/config.yml")
+STEAM_API_KEY = config['steam_api_key']
+
+Stew::configure({steam_api_key: STEAM_API_KEY})
+
+
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = 'random'
\ No newline at end of file