summaryrefslogtreecommitdiff
path: root/spec/bundler/cli_spec.rb
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:52:48 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:52:48 -0700
commita77ca278809d7f31fa51e4b821faed86324c8275 (patch)
treeda1c6c68b24fdcab9acfc07b6a352a39af1c6f4e /spec/bundler/cli_spec.rb
parentaf694073229af89af205d24ff449f51f74316a37 (diff)
downloadbundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'spec/bundler/cli_spec.rb')
-rw-r--r--spec/bundler/cli_spec.rb14
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