summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blair <tim@bla.ir>2015-07-08 22:28:35 +0100
committerAndre Arko <andre@arko.net>2015-07-09 22:22:51 -0700
commit856ef24897a4a5c18999f8231b2379b416242760 (patch)
tree7332b46e1793ecee0e64356db9b0c29624e92ce9
parenta400ae031f4895b6bd85671bd52de843ce16792a (diff)
downloadbundler-856ef24897a4a5c18999f8231b2379b416242760.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