aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/thread/backtrace/location/inspect_spec.rb
blob: 56d440c04ac0b8c81e22e94cc1fad66b8e1307e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require File.expand_path('../../../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe 'Thread::Backtrace::Location#inspect' do
  before :each do
    @frame = ThreadBacktraceLocationSpecs.locations[0]
    @line  = __LINE__ - 1
  end

  it 'converts the call frame to a String' do
    @frame.inspect.should include("#{__FILE__}:#{@line}:in ")
  end
end