Sha256: cf77ef09ea9f041a1f9ce7c2b4b7d3e16574e403c24ad55563a2268e86b073ac

Contents?: true

Size: 648 Bytes

Versions: 7

Compression:

Stored size: 648 Bytes

Contents

require 'test_helper'

module Skiptrace
  class LocationTest < Test
    test 'behaves like Thread::Backtrace::Location' do
      native_location = caller_locations.first
      location = Skiptrace::Location.new(native_location, binding)

      assert_equal native_location.absolute_path, location.absolute_path
      assert_equal native_location.base_label, location.base_label
      assert_equal native_location.inspect, location.inspect
      assert_equal native_location.label, location.label
      assert_equal native_location.to_s, location.to_s

      assert_equal [__FILE__, __LINE__ - 8], location.binding.source_location
    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bindex-0.8.1/test/skiptrace/location_test.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/bindex-0.8.1/test/skiptrace/location_test.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/bindex-0.8.1/test/skiptrace/location_test.rb
bindex-0.8.1 test/skiptrace/location_test.rb
skiptrace-0.8.1 test/skiptrace/location_test.rb
skiptrace-0.8.0 test/skiptrace/location_test.rb
bindex-0.8.0 test/skiptrace/location_test.rb