diff options
Diffstat (limited to 'spec/runtime/executable_spec.rb')
-rw-r--r-- | spec/runtime/executable_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/runtime/executable_spec.rb b/spec/runtime/executable_spec.rb index ad43c05929..4ddb330ae0 100644 --- a/spec/runtime/executable_spec.rb +++ b/spec/runtime/executable_spec.rb @@ -38,7 +38,7 @@ describe "Running bin/* commands" do it "uses the default ruby install name when shebang is not specified" do bundle "install --binstubs" - expect(File.open("bin/rackup").gets).to eq("#!/usr/bin/env #{RbConfig::CONFIG['ruby_install_name']}\n") + expect(File.open("bin/rackup").gets).to eq("#!/usr/bin/env #{RbConfig::CONFIG["ruby_install_name"]}\n") end it "allows the name of the shebang executable to be specified" do @@ -61,21 +61,21 @@ describe "Running bin/* commands" do it "works with gems in path" do build_lib "rack", :path => lib_path("rack") do |s| - s.executables = 'rackup' + s.executables = "rackup" end gemfile <<-G - gem "rack", :path => "#{lib_path('rack')}" + gem "rack", :path => "#{lib_path("rack")}" G bundle "install --binstubs" - build_gem 'rack', '2.0', :to_system => true do |s| - s.executables = 'rackup' + build_gem "rack", "2.0", :to_system => true do |s| + s.executables = "rackup" end gembin "rackup" - expect(out).to eq('1.0') + expect(out).to eq("1.0") end it "don't bundle da bundla" do @@ -138,7 +138,7 @@ describe "Running bin/* commands" do bundle "install --binstubs bin/" - File.open(bundled_app("bin/rackup"), 'wb') do |file| + File.open(bundled_app("bin/rackup"), "wb") do |file| file.print "OMG" end |