summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blair <tim@bla.ir>2015-07-08 22:28:35 +0100
committerTim Blair <tim@bla.ir>2015-07-08 22:28:35 +0100
commite309b220293cdad1cee6fa348646c0e1c53bfe02 (patch)
treefe1fc43d2ce97b5bc9eca28ff914f3ac7e2a31b1
parente02583ed8011c967d7d8e7cb6272c49209e12872 (diff)
downloadbundler-e309b220293cdad1cee6fa348646c0e1c53bfe02.tar.gz
Use explicit values in RemoteSpecification tests
The original cases ("not zero") would still pass if the check resulted in a nil response.
-rw-r--r--spec/bundler/remote_specification_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/remote_specification_spec.rb b/spec/bundler/remote_specification_spec.rb
index fa3534d8a2..ce1e4e0358 100644
--- a/spec/bundler/remote_specification_spec.rb
+++ b/spec/bundler/remote_specification_spec.rb
@@ -27,8 +27,8 @@ describe Bundler::RemoteSpecification do
context "which is different by name" do
let(:other_name) { "a" }
- it "doesn't return 0" do
- expect(subject <=> other).not_to eq(0)
+ it "returns 1" do
+ expect(subject <=> other).to eq(1)
end
end
@@ -48,8 +48,8 @@ describe Bundler::RemoteSpecification do
context "which has a different platform" do
let(:other_platform) { Gem::Platform.new("x86-mswin32") }
- it "doesn't return 0" do
- expect(subject <=> other).not_to eq(0)
+ it "returns -1" do
+ expect(subject <=> other).to eq(-1)
end
end
end