blob: 9c94ad5d1c50867fcd2d0f1093b24248cb49f2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
RSpec.describe Pry::Warning do
describe "#warn" do
it "prints message with file and line of the calling frame" do
expect(Kernel).to receive(:warn).with(/.+\.rb:\d+: warning: foo bar/)
described_class.warn('foo bar')
end
end
end
|