kosher 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/kosher/offer.rb +1 -1
- data/lib/kosher/version.rb +1 -1
- data/spec/kosher/offer_spec.rb +6 -6
- metadata +1 -1
data/lib/kosher/offer.rb
CHANGED
data/lib/kosher/version.rb
CHANGED
data/spec/kosher/offer_spec.rb
CHANGED
@@ -86,9 +86,9 @@ module Kosher
|
|
86
86
|
@offer.stub!(:kosher?).and_return(true)
|
87
87
|
end
|
88
88
|
|
89
|
-
it "is
|
89
|
+
it "is less than a non-kosher offer" do
|
90
90
|
@another_offer.stub!(:kosher?).and_return(false)
|
91
|
-
@offer.should
|
91
|
+
@offer.should < @another_offer
|
92
92
|
end
|
93
93
|
|
94
94
|
context "when the other offer is kosher as well" do
|
@@ -103,7 +103,7 @@ module Kosher
|
|
103
103
|
end
|
104
104
|
|
105
105
|
it "is less than other offer" do
|
106
|
-
@offer.should
|
106
|
+
@offer.should < @another_offer
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -123,7 +123,7 @@ module Kosher
|
|
123
123
|
end
|
124
124
|
|
125
125
|
it "is greater than the other offer" do
|
126
|
-
@offer.should
|
126
|
+
@offer.should > @another_offer
|
127
127
|
end
|
128
128
|
end
|
129
129
|
end
|
@@ -134,9 +134,9 @@ module Kosher
|
|
134
134
|
@offer.stub!(:kosher?).and_return(false)
|
135
135
|
end
|
136
136
|
|
137
|
-
it "is
|
137
|
+
it "is greater than a kosher offer" do
|
138
138
|
@another_offer.stub!(:kosher?).and_return(true)
|
139
|
-
@offer.should
|
139
|
+
@offer.should > @another_offer
|
140
140
|
end
|
141
141
|
|
142
142
|
context "when the other offer is not kosher either" do
|