label_me 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/label_me/order.rb +1 -1
- data/lib/label_me/version.rb +1 -1
- data/spec/label_me/order_spec.rb +1 -1
- data/spec/label_me/sales_all/object_spec.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46e35433e2f79f04a8a9f231f84b804fd234eaca
|
4
|
+
data.tar.gz: 6bb26e713b6e84facb172447c927c9c80a0e4ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066c3165519eebcfcb50de43134bdc29a926d0a6da280ffa96eb5a45e927379ea939b7738fe2aa84fa544fca5bdb990f88478d3f4241ee1bed701e2707c4f5f0
|
7
|
+
data.tar.gz: c3ad17ac9e1eb9fe41ced0af64cb13de033dc54f2636fa775a7138be0c3528fd11fd5fa4bd0afd2ba2df0288b68ebb5a47622fdb9cddbdbbc806732de7e0d5bc
|
data/lib/label_me/order.rb
CHANGED
data/lib/label_me/version.rb
CHANGED
data/spec/label_me/order_spec.rb
CHANGED
@@ -58,7 +58,7 @@ describe LabelMe::Order do
|
|
58
58
|
hash = @order.to_hash
|
59
59
|
expect(hash[:number]).to eq(12342345)
|
60
60
|
expect(hash[:order_date]).to eq(Date.new(2013,1,18))
|
61
|
-
expect(hash[:paid
|
61
|
+
expect(hash[:paid]).to eq(true)
|
62
62
|
expect(hash[:shipping_charge]).to eq(600)
|
63
63
|
expect(hash[:message_card_charge]).to eq(0)
|
64
64
|
expect(hash[:customer_attributes]).to eq(@order.customer.to_hash)
|
@@ -21,7 +21,6 @@ describe LabelMe::SalesAll::Object do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it "should return tree structured instances of LabelMe::Order" do
|
24
|
-
@orders.each{|order| puts order.to_hash}
|
25
24
|
expect(@orders.size).to eq(2)
|
26
25
|
expect(@orders[0].recipients.size).to eq(2)
|
27
26
|
expect(@orders[0].recipients[0].line_items.size).to eq(2)
|