Skip to content

Commit

Permalink
remove old caller filter files
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 21, 2013
1 parent 3315cf8 commit 96c783b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 207 deletions.
81 changes: 0 additions & 81 deletions benchmarks/caller.rb

This file was deleted.

55 changes: 0 additions & 55 deletions lib/rspec/core/caller_filter.rb

This file was deleted.

43 changes: 0 additions & 43 deletions spec/rspec/core/caller_filter_spec.rb

This file was deleted.

28 changes: 0 additions & 28 deletions spec/support/helper_methods.rb
Expand Up @@ -23,32 +23,4 @@ def safely
end
end

def expect_deprecation_with_call_site(file, line)
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
expect(options[:call_site]).to include([file, line].join(':'))
end
end

def allow_deprecation
allow(RSpec.configuration.reporter).to receive(:deprecation)
end

def expect_warning_without_call_site(expected = //)
expect(::Kernel).to receive(:warn) do |message|
expect(message).to match expected
expect(message).to_not match(/Called from/)
end
end

def expect_warning_with_call_site(file, line, expected = //)
expect(::Kernel).to receive(:warn) do |message|
expect(message).to match expected
expect(message).to match(/Called from #{file}:#{line}/)
end
end

def allow_warning
allow(::Kernel).to receive(:warn)
end

end

0 comments on commit 96c783b

Please sign in to comment.