summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Koronen <koronen@kth.se>2015-08-08 17:01:11 +0200
committerVictor Koronen <koronen@kth.se>2015-08-14 12:29:44 +0200
commitf88a32c4d83ca0d604315b22f4578cc93502eb1d (patch)
tree4b75650dd9caf9b5a027f4a5a990d54c42e4132a
parent132b95ee70e3e9d3b318429bd53c879a7c503341 (diff)
downloadbundler-f88a32c4d83ca0d604315b22f4578cc93502eb1d.tar.gz
Fix Style/LeadingCommentSpace
Remove some dead code.
-rw-r--r--.rubocop_todo.yml5
-rw-r--r--spec/install/bundler_spec.rb1
-rw-r--r--spec/install/gems/dependency_api_spec.rb2
-rw-r--r--spec/runtime/executable_spec.rb1
-rw-r--r--spec/support/matchers.rb2
5 files changed, 1 insertions, 10 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index b545eae4fe..2e5da48970 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -208,11 +208,6 @@ Style/IndentationWidth:
Style/InfiniteLoop:
Enabled: false
-# Offense count: 4
-# Cop supports --auto-correct.
-Style/LeadingCommentSpace:
- Enabled: false
-
# Offense count: 2
Style/ModuleFunction:
Enabled: false
diff --git a/spec/install/bundler_spec.rb b/spec/install/bundler_spec.rb
index 4bbfb135c1..a5278ef2f8 100644
--- a/spec/install/bundler_spec.rb
+++ b/spec/install/bundler_spec.rb
@@ -134,7 +134,6 @@ describe "bundle install" do
G
simulate_bundler_version "10.0.0"
- #simulate_new_machine
bundle "check"
expect(out).to include("The Gemfile's dependencies are satisfied")
diff --git a/spec/install/gems/dependency_api_spec.rb b/spec/install/gems/dependency_api_spec.rb
index 97b1c6fc9e..55eba01481 100644
--- a/spec/install/gems/dependency_api_spec.rb
+++ b/spec/install/gems/dependency_api_spec.rb
@@ -290,7 +290,7 @@ describe "gemcutter's dependency API" do
build_repo4 do
build_gem "activesupport", "1.2.0"
build_gem "somegem", "1.0.0" do |s|
- s.add_dependency "activesupport", "1.2.3" #This version exists only in repo1
+ s.add_dependency "activesupport", "1.2.3" # This version exists only in repo1
end
end
diff --git a/spec/runtime/executable_spec.rb b/spec/runtime/executable_spec.rb
index 4ddb330ae0..532346286b 100644
--- a/spec/runtime/executable_spec.rb
+++ b/spec/runtime/executable_spec.rb
@@ -105,7 +105,6 @@ describe "Running bin/* commands" do
bundle "install --binstubs \"\""
expect(bundled_app("bin/rackup")).not_to exist
- #expect(bundled_app("rackup")).not_to exist
bundle "config bin"
expect(out).to include("You have not configured a value for `bin`")
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index d41ac964f5..6c585ddae4 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -18,8 +18,6 @@ module Spec
args = args.flatten
args = args.first.split(/\s+/) if args.size == 1
- #failure_message_for_should "Expected RUBYOPT to have options #{args.join(" ")}. It was #{ENV["RUBYOPT"]}"
-
match do |actual|
actual = actual.split(/\s+/) if actual.is_a?(String)
args.all? {|arg| actual.include?(arg) } && actual.uniq.size == actual.size