spec/spec_helper.rb in deimos-ruby-1.13.3 vs spec/spec_helper.rb in deimos-ruby-1.14.0

- old
+ new

@@ -11,11 +11,12 @@ require 'active_support/testing/time_helpers' require 'activerecord-import' require 'handlers/my_batch_consumer' require 'handlers/my_consumer' require 'rspec/rails' -Dir['./spec/schema_classes/**/*.rb'].sort.each { |f| require f } +require 'rspec/snapshot' +Dir['./spec/schemas/**/*.rb'].sort.each { |f| require f } # Constants used for consumer specs SCHEMA_CLASS_SETTINGS = { off: false, on: true }.freeze class DeimosApp < Rails::Application @@ -153,9 +154,11 @@ RSpec.configure do |config| config.extend(DbConfigs) include DbConfigs config.include TestRunners config.full_backtrace = true + + config.snapshot_dir = "spec/snapshots" # true by default for RSpec 4.0 config.shared_context_metadata_behavior = :apply_to_host_groups config.filter_run(focus: true)