summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-10-24 22:28:46 -0700
committerAndre Arko <andre@arko.net>2010-10-24 22:28:46 -0700
commit55147bc7cb1468a1018c3779e665cbeb0e27d926 (patch)
tree08c7e7bdd871441c7cc90eed2d4a4f12db4aae47
parent131ad832d497c9c8593e58794a4717e7fa807a86 (diff)
downloadbundler-55147bc7cb1468a1018c3779e665cbeb0e27d926.tar.gz
Go away useless use warnings
-rw-r--r--spec/install/deploy_spec.rb2
-rw-r--r--spec/install/gems/groups_spec.rb2
-rw-r--r--spec/install/gems/sudo_spec.rb4
-rw-r--r--spec/install/git_spec.rb2
-rw-r--r--spec/install/path_spec.rb2
-rw-r--r--spec/other/check_spec.rb2
-rw-r--r--spec/other/exec_spec.rb4
-rw-r--r--spec/other/gem_helper_spec.rb4
-rw-r--r--spec/other/init_spec.rb6
-rw-r--r--spec/runtime/require_spec.rb2
-rw-r--r--spec/support/matchers.rb2
-rw-r--r--spec/update/git_spec.rb4
12 files changed, 18 insertions, 18 deletions
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index 4dd5a74ebb..8c810a1937 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -21,7 +21,7 @@ describe "install with --deployment or --frozen" do
it "works after you try to deploy without a lock" do
bundle "install --deployment"
bundle :install, :exitstatus => true
- exitstatus.should == 0
+ check exitstatus.should == 0
should_be_installed "rack 1.0"
end
diff --git a/spec/install/gems/groups_spec.rb b/spec/install/gems/groups_spec.rb
index ed41d04c24..e54cbd7298 100644
--- a/spec/install/gems/groups_spec.rb
+++ b/spec/install/gems/groups_spec.rb
@@ -38,7 +38,7 @@ describe "bundle install with gem sources" do
check out.should == '1.0.0'
out = run("require 'activesupport'; puts ACTIVESUPPORT")
- out.should == '2.3.5'
+ check out.should == '2.3.5'
out = run("require 'thin'; puts THIN")
out.should == '1.0'
diff --git a/spec/install/gems/sudo_spec.rb b/spec/install/gems/sudo_spec.rb
index 4b200f252a..c93d27262d 100644
--- a/spec/install/gems/sudo_spec.rb
+++ b/spec/install/gems/sudo_spec.rb
@@ -17,7 +17,7 @@ describe "when using sudo" do
G
system_gem_path("gems/rack-1.0.0").should exist
- system_gem_path("gems/rack-1.0.0").stat.uid.should == 0
+ check system_gem_path("gems/rack-1.0.0").stat.uid.should == 0
should_be_installed "rack 1.0"
end
@@ -33,7 +33,7 @@ describe "when using sudo" do
G
bundle_path.join("gems/rack-1.0.0").should exist
- bundle_path.join("gems/rack-1.0.0").stat.uid.should == 0
+ check bundle_path.join("gems/rack-1.0.0").stat.uid.should == 0
should_be_installed "rack 1.0"
end
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb
index ad1a01556c..0f89b77bdc 100644
--- a/spec/install/git_spec.rb
+++ b/spec/install/git_spec.rb
@@ -145,7 +145,7 @@ describe "bundle install with git sources" do
gem "foo"
end
G
- err.should == ""
+ check err.should == ""
run <<-RUBY
require 'foo'
diff --git a/spec/install/path_spec.rb b/spec/install/path_spec.rb
index 98ac3396e1..1de35da1d2 100644
--- a/spec/install/path_spec.rb
+++ b/spec/install/path_spec.rb
@@ -126,7 +126,7 @@ describe "bundle install with explicit source paths" do
gemspec :path => "#{lib_path("foo")}"
G
- @exitstatus.should == 15
+ check exitstatus.should == 15
out.should =~ /There are multiple gemspecs/
end
diff --git a/spec/other/check_spec.rb b/spec/other/check_spec.rb
index 979d8b3569..519ecc15c3 100644
--- a/spec/other/check_spec.rb
+++ b/spec/other/check_spec.rb
@@ -190,7 +190,7 @@ describe "bundle check" do
last_out = out
3.times do |i|
bundle :check
- out.should == last_out
+ check out.should == last_out
err.should be_empty
end
end
diff --git a/spec/other/exec_spec.rb b/spec/other/exec_spec.rb
index 15e0820ed6..24f728ef15 100644
--- a/spec/other/exec_spec.rb
+++ b/spec/other/exec_spec.rb
@@ -98,7 +98,7 @@ describe "bundle exec" do
G
bundle "exec foobarbaz", :exitstatus => true
- @exitstatus.should == 127
+ check exitstatus.should == 127
out.should include("bundler: command not found: foobarbaz")
out.should include("Install missing gem binaries with `bundle install`")
end
@@ -110,7 +110,7 @@ describe "bundle exec" do
bundle "exec touch foo"
bundle "exec ./foo", :exitstatus => true
- @exitstatus.should == 126
+ check exitstatus.should == 126
out.should include("bundler: not executable: ./foo")
end
diff --git a/spec/other/gem_helper_spec.rb b/spec/other/gem_helper_spec.rb
index 4611a9ec30..8016d954dc 100644
--- a/spec/other/gem_helper_spec.rb
+++ b/spec/other/gem_helper_spec.rb
@@ -102,8 +102,8 @@ describe "Bundler::GemHelper tasks" do
it "releases" do
mock_build_message
- mock_confirm_message /Tagged v0.0.1/
- mock_confirm_message "Pushed git commits and tags"
+ mock_confirm_message(/Tagged v0.0.1/)
+ mock_confirm_message("Pushed git commits and tags")
@helper.should_receive(:rubygem_push).with(bundled_app('test/pkg/test-0.0.1.gem').to_s)
diff --git a/spec/other/init_spec.rb b/spec/other/init_spec.rb
index b5bb9ca54f..6b380e15c0 100644
--- a/spec/other/init_spec.rb
+++ b/spec/other/init_spec.rb
@@ -32,9 +32,9 @@ describe "bundle init" do
gemfile = bundled_app("Gemfile").read
gemfile.should =~ /source :gemcutter/
- gemfile.scan(/gem "rack", "= 1.0.1"/).size.should == 1
- gemfile.scan(/gem "rspec", "= 1.2"/).size.should == 1
- gemfile.scan(/group :development/).size.should == 1
+ check gemfile.scan(/gem "rack", "= 1.0.1"/).size.should == 1
+ check gemfile.scan(/gem "rspec", "= 1.2"/).size.should == 1
+ check gemfile.scan(/group :development/).size.should == 1
end
end \ No newline at end of file
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index 1bd2582197..bb366175bc 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -225,7 +225,7 @@ describe "Bundler.require with platform specific dependencies" do
run "Bundler.require; puts RACK", :expect_err => true
- out.should == "1.0.0"
+ check out.should == "1.0.0"
err.should be_empty
end
end
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index 0f6ee91adc..429faa07cb 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -35,7 +35,7 @@ module Spec
version_const = name == 'bundler' ? 'Bundler::VERSION' : Spec::Builders.constantize(name)
run "require '#{name}.rb'; puts #{version_const}", *groups
actual_version, actual_platform = out.split(/\s+/)
- Gem::Version.new(actual_version).should == Gem::Version.new(version)
+ check Gem::Version.new(actual_version).should == Gem::Version.new(version)
actual_platform.should == platform
end
end
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb
index 340bece97d..3130e533d9 100644
--- a/spec/update/git_spec.rb
+++ b/spec/update/git_spec.rb
@@ -122,7 +122,7 @@ describe "bundle update" do
G
run "require 'submodule'"
- out.should == 'GEM'
+ check out.should == 'GEM'
install_gemfile <<-G
git "#{lib_path('has_submodule-1.0')}", :submodules => true do
@@ -143,7 +143,7 @@ describe "bundle update" do
G
run "require 'submodule'"
- out.should == 'GIT'
+ check out.should == 'GIT'
install_gemfile <<-G
git "#{lib_path('has_submodule-1.0')}" do