diff options
author | Steven Peckins <speckins@illinois.edu> | 2020-09-02 22:30:55 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-28 14:54:22 +0900 |
commit | 8863bfb1f46ae3bdef52d7f9d72534df0ae8617a (patch) | |
tree | bfd15592ceb3449cbb6f29f4a8ddc08490ff4495 /spec/bundler | |
parent | 18c642da869876da1100d046e8ac6556c3638e91 (diff) | |
download | ruby-8863bfb1f46ae3bdef52d7f9d72534df0ae8617a.tar.gz |
[rubygems/rubygems] Move comment below shebang in bin/console template
In an executable script, the shebang line should be the first line (the
file needs to start with the bytes 0x23 0x21). Putting a comment above
it will break the script.
(Regression test included per @deivid-rodriguez)
https://github.com/rubygems/rubygems/commit/962e669feb
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 7dca5f5188..70419f612d 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -376,6 +376,8 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/bin/console")).to exist expect(bundled_app("#{gem_name}/bin/setup")).to be_executable expect(bundled_app("#{gem_name}/bin/console")).to be_executable + expect(bundled_app("#{gem_name}/bin/setup").read).to start_with("#!") + expect(bundled_app("#{gem_name}/bin/console").read).to start_with("#!") end it "starts with version 0.1.0" do |