spec/spec_helper.rb in berkeley_library-logging-0.2.5 vs spec/spec_helper.rb in berkeley_library-logging-0.2.6

- old
+ new

@@ -6,10 +6,10 @@ spec_root = File.realpath(__dir__) spec_group_re = %r{(?<=^#{spec_root}/)[^/]+(?=/)} RSpec.configure do |config| - config.before(:each) do |example| + config.before do |example| abs_path = File.realpath(example.metadata[:absolute_file_path]) match_data = spec_group_re.match(abs_path) raise ArgumentError, "Unable to determine group for example at #{abs_path}" unless match_data spec_group = match_data[0]