spec/spec_helper.rb in cbaoth-0.0.20 vs spec/spec_helper.rb in cbaoth-0.1.1
- old
+ new
@@ -6,16 +6,15 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require_relative '../lib/cbaoth'
RSpec.configure do |config|
- config.treat_symbols_as_metadata_keys_with_true_values = true
+ # config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
- # todo: change this to after so we don't have unwanted test dir's/files
config.after :suite do
- FileUtils.rm_rf "../../testing_dir"
+ FileUtils.rm_rf "#{File.dirname(__dir__)}/spec/testing_dir"
end
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.