1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

spec/code_spec.rb: add more tests for $LOAD_PATH behaviour

This commit is contained in:
Kyrylo Silin 2013-11-23 22:13:54 +02:00
parent fc2993a5ca
commit 62ebc08d52
3 changed files with 8 additions and 0 deletions

View file

@ -71,6 +71,14 @@ describe Pry::Code do
it 'finds files in a relative directory with `.rb` omitted' do
Pry::Code.from_file('../helper').code_type.should == :ruby
end
it "doesn't confuse files with the same name, but without an extension" do
Pry::Code.from_file('cat_load_path').code_type.should == :unknown
end
it "doesn't confuse files with the same name, but with an extension" do
Pry::Code.from_file('cat_load_path.rb').code_type.should == :ruby
end
end
end

0
spec/fixtures/cat_load_path vendored Normal file
View file

0
spec/fixtures/cat_load_path.rb vendored Normal file
View file