diff options
Diffstat (limited to 'spec/bundler/cli_spec.rb')
-rw-r--r-- | spec/bundler/cli_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index 2ebe69d26b..32eecbc49d 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -1,27 +1,27 @@ -require 'spec_helper' -require 'bundler/cli' +require "spec_helper" +require "bundler/cli" describe "bundle executable" do it "returns non-zero exit status when passed unrecognized options" do - bundle '--invalid_argument' + bundle "--invalid_argument" expect(exitstatus).to_not be_zero if exitstatus end it "returns non-zero exit status when passed unrecognized task" do - bundle 'unrecognized-tast' + bundle "unrecognized-tast" expect(exitstatus).to_not be_zero if exitstatus end it "looks for a binary and executes it if it's named bundler-<task>" do - File.open(tmp('bundler-testtasks'), 'w', 0755) do |f| + File.open(tmp("bundler-testtasks"), "w", 0755) do |f| f.puts "#!/usr/bin/env ruby\nputs 'Hello, world'\n" end with_path_as(tmp) do - bundle 'testtasks' + bundle "testtasks" end expect(exitstatus).to be_zero if exitstatus - expect(out).to eq('Hello, world') + expect(out).to eq("Hello, world") end end |