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:
parent
fc2993a5ca
commit
62ebc08d52
3 changed files with 8 additions and 0 deletions
|
@ -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
0
spec/fixtures/cat_load_path
vendored
Normal file
0
spec/fixtures/cat_load_path.rb
vendored
Normal file
0
spec/fixtures/cat_load_path.rb
vendored
Normal file
Loading…
Reference in a new issue