ticketevolution-ruby 0.7.24 → 0.7.25
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.
|
@@ -24,8 +24,8 @@ module TicketEvolution
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
def pend_to_seller(
|
|
28
|
-
request(:POST, "/#{id}/pend_to_seller", &method(:build_for_show))
|
|
27
|
+
def pend_to_seller(params)
|
|
28
|
+
request(:POST, "/#{params[:id]}/pend_to_seller", params, &method(:build_for_show))
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def create_fulfillment_order(params = nil)
|
|
@@ -54,11 +54,12 @@ describe TicketEvolution::Orders do
|
|
|
54
54
|
describe "#pend_to_seller" do
|
|
55
55
|
context "with an id" do
|
|
56
56
|
let(:instance) { klass.new({:parent => Fake.connection, :id => 1}) }
|
|
57
|
+
let(:params) {{ :id => instance.id }}
|
|
57
58
|
|
|
58
59
|
it "should pass call request as a POST" do
|
|
59
|
-
instance.should_receive(:request).with(:POST, "/1/pend_to_seller")
|
|
60
|
+
instance.should_receive(:request).with(:POST, "/1/pend_to_seller", params)
|
|
60
61
|
|
|
61
|
-
instance.pend_to_seller(
|
|
62
|
+
instance.pend_to_seller(params)
|
|
62
63
|
end
|
|
63
64
|
end
|
|
64
65
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ticketevolution-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.25
|
|
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: 2012-12-
|
|
12
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -400,9 +400,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
400
400
|
- - ! '>='
|
|
401
401
|
- !ruby/object:Gem::Version
|
|
402
402
|
version: '0'
|
|
403
|
-
segments:
|
|
404
|
-
- 0
|
|
405
|
-
hash: 2692934489261752987
|
|
406
403
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
407
404
|
none: false
|
|
408
405
|
requirements:
|