Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
- index ecbe44f1c..593fb8fcc 100644
- --- a/spec/spec_helper.rb
- +++ b/spec/spec_helper.rb
- @@ -49,6 +49,17 @@ RSpec.configure do |config|
- # config.disable_monkey_patching!
- # spec_helper NOTE: enabling this disables concise RSpec syntax
- config.include FactoryGirl::Syntax::Methods
- + config.around :each do |ex|
- + old = $stderr
- + $stderr = fake = StringIO.new
- + ex_file = ex.metadata[:block].source_location[0].gsub '/Users/ericboehs/Code/spreemo/chewy/', ''
- + ex_line_no = ex.metadata[:block].source_location[1]
- + ex.run
- + $stderr = old
- + if fake.string.present?
- + File.open('deprecations.txt', 'a') {|f| f.write("#{ex_file} #{ex_line_no} #{fake.string}") }
- + end
- + end
- if ENV['CI']
- # show retry status in spec process
Add Comment
Please, Sign In to add comment