click_and_send 0.2.4 → 0.2.5
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/click_and_send/version.rb +1 -1
- data/spec/acceptance_spec.rb +9 -0
- metadata +5 -5
data/spec/acceptance_spec.rb
CHANGED
@@ -15,11 +15,20 @@ describe ClickAndSend, :acceptance do
|
|
15
15
|
context "when one transaction" do
|
16
16
|
let(:options) { {'Transactions' => attributes_for('Transaction')} }
|
17
17
|
specify { should be_a(Hash) }
|
18
|
+
specify { should have_key(:cust_transaction_id) }
|
19
|
+
specify { should have_key(:tracking_number) }
|
18
20
|
end
|
19
21
|
|
20
22
|
context "when two transactions" do
|
21
23
|
let(:options) { attributes_for('Transactions') }
|
22
24
|
specify { should be_a(Array) }
|
25
|
+
its(:length) { should eq(2) }
|
26
|
+
its(:first) { should be_a(Hash) }
|
27
|
+
its(:first) { should have_key(:cust_transaction_id) }
|
28
|
+
its(:first) { should have_key(:tracking_number) }
|
29
|
+
its(:last) { should be_a(Hash) }
|
30
|
+
its(:last) { should have_key(:cust_transaction_id) }
|
31
|
+
its(:last) { should have_key(:tracking_number) }
|
23
32
|
end
|
24
33
|
end
|
25
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: click_and_send
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
segments:
|
180
180
|
- 0
|
181
|
-
hash:
|
181
|
+
hash: 574577211705301196
|
182
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
183
|
none: false
|
184
184
|
requirements:
|
@@ -187,10 +187,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
segments:
|
189
189
|
- 0
|
190
|
-
hash:
|
190
|
+
hash: 574577211705301196
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
|
-
rubygems_version: 1.8.
|
193
|
+
rubygems_version: 1.8.23
|
194
194
|
signing_key:
|
195
195
|
specification_version: 3
|
196
196
|
summary: Ruby adapter for Australia Post's ClickAndSend API
|