Permalink
Browse files

Fix specs to expand the filename before comparison

* This should fix some spec failures under ruby 1.8
  • Loading branch information...
dkubb committed Jan 19, 2013
1 parent 593b434 commit 0077605344267a27e6f3f7b6354c90d8d0d97206
@@ -31,7 +31,7 @@
rescue NotImplementedError => error
error.message.should == 'Subclass#some_method is not implemented'
file, line = error.backtrace.first.split(':')[0, 2]
file.should eql(File.expand_path('../../../../../lib/abstract_type.rb', __FILE__))
File.expand_path(file).should eql(File.expand_path('../../../../../lib/abstract_type.rb', __FILE__))
line.to_i.should be(111)
else
raise 'expected error not raised'
@@ -31,7 +31,7 @@
rescue NotImplementedError => error
error.message.should == 'Subclass.some_method is not implemented'
file, line = error.backtrace.first.split(':')[0, 2]
file.should eql(File.expand_path('../../../../../lib/abstract_type.rb', __FILE__))
File.expand_path(file).should eql(File.expand_path('../../../../../lib/abstract_type.rb', __FILE__))
line.to_i.should be(95)
else
raise 'expected error not raised'

0 comments on commit 0077605

Please sign in to comment.