spec/spec_helper.rb in tram-policy-0.0.1 vs spec/spec_helper.rb in tram-policy-0.0.2
- old
+ new
@@ -3,11 +3,11 @@
rescue
nil
end
require "bundler/setup"
require "tram/policy"
-require "tram/policy/matchers"
+require "tram/policy/rspec"
require "rspec/its"
RSpec.configure do |config|
config.example_status_persistence_file_path = ".rspec_status"
config.expect_with :rspec do |c|
@@ -17,11 +17,8 @@
config.order = :random
config.filter_run focus: true
config.run_all_when_everything_filtered = true
# Prepare the Test namespace for constants defined in specs
- config.around(:each) do |example|
- Test = Class.new(Module)
- example.run
- Object.send :remove_const, :Test
- end
+ config.before(:each) { Test = Class.new(Module) }
+ config.after(:each) { Object.send :remove_const, :Test }
end