blob: e562bc65c8f00ecd4061dbd6f7058087a804340a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
require_relative 'fixtures/location'
ruby_version_is "2.6" do
describe "Binding#source_location" do
it "returns an [file, line] pair" do
b = BindingSpecs::LocationMethod::TEST_BINDING
b.source_location.should == [BindingSpecs::LocationMethod::FILE_PATH, 4]
end
end
end
|