1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
This commit is contained in:
Ryan Fitzgerald 2015-01-14 22:07:32 -08:00
parent dab174b13c
commit 3bcb2e02ff
2 changed files with 5 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1 @@
source :rubygems