mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Add spec for 8cdcd9e40d
This commit is contained in:
parent
dab174b13c
commit
3bcb2e02ff
2 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,10 @@ describe Pry::Code do
|
|||
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
|
||||
|
||||
it "recognizes special Ruby files without extensions" do
|
||||
Pry::Code.from_file('Gemfile').code_type.should == :ruby
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
1
spec/fixtures/Gemfile
vendored
Normal file
1
spec/fixtures/Gemfile
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
source :rubygems
|
Loading…
Add table
Add a link
Reference in a new issue