spec/unit/veritas/aliasable/inheritable_alias_spec.rb in veritas-0.0.3 vs spec/unit/veritas/aliasable/inheritable_alias_spec.rb in veritas-0.0.4
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: utf-8
+
require 'spec_helper'
require File.expand_path('../fixtures/classes', __FILE__)
describe Aliasable, '#inheritable_alias' do
subject { object.inheritable_alias(aliases) }
@@ -33,10 +35,10 @@
subject
file, line = aliasable.other.first.split(':')[0, 2]
File.expand_path(file).should == File.expand_path('../../../../../lib/veritas/support/aliasable.rb', __FILE__)
- line.to_i.should == 21
+ line.to_i.should == 23
end
it 'sets the file and line number properly' do
if RUBY_PLATFORM[/java/]
pending('Kernel#caller returns the incorrect line number in JRuby', &specification)