spec/spec_helper.rb in ns-yapi-0.4.0 vs spec/spec_helper.rb in ns-yapi-0.4.1
- old
+ new
@@ -23,9 +23,20 @@
config.after(:each) do
Timecop.return # make sure timecop is disabled after each test
end
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.filter_run :focus => true
+ config.run_all_when_everything_filtered = true
+
+ unless config.inclusion_filter[:integration]
+ p "Integration specs are DISABLED. To run integration specs only, use `rspec --tag integration`"
+ config.filter_run_excluding :integration => true
+ else
+ p "Running integrtion specs ONLY."
+ end
+
end
# END
##############################################################
$ROOT = File.expand_path("../", lib_path)