spree_api 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bdf54d9702da778a98e961e7ecaa93c91113a4e
4
- data.tar.gz: f1527d859f7fddb7ef7cd6537dfc43fe1572b754
3
+ metadata.gz: ee56f5456d4df4fb13dcef73b99f9ab8733cb003
4
+ data.tar.gz: 846249f3da9cc1b974e48cdc341e93e37ff3e2f4
5
5
  SHA512:
6
- metadata.gz: 4584dce0d9b973efebf1f7baa373f92116a1f511de54c2a0a37a9cea0ad73907f863b691e9f254563af42bd168e2ac37074b90cd12d25862ad26145fa3bcf2d5
7
- data.tar.gz: d14f69e5834c3e9bc213c583640b7375f4f6a04ec06ee0d3eb241267aadb00847c2479cd8b62e743bdea17cb23293e9424542005459e3fcd2ef08cc56156378d
6
+ metadata.gz: b735b3169096065a462c68aee1ba924a76aa70d84bb94ac365c9ca272992e4f9a09b258c8fa293f7bdc61d568aac0085e7b40312db349e23ec3765bd46d6363f
7
+ data.tar.gz: 58cb49ff72f40ff6a8d7d593dd62e7620687d5b1a3da4e7b28789d3d03b10909a89014de15a4c7c21efe7955b4c1aaa9845d695d0a29748f25d9c32e37e11db2
@@ -110,10 +110,6 @@ module Spree
110
110
  send(method_name) if respond_to?(method_name, true)
111
111
  end
112
112
 
113
- def before_payment
114
- @order.payments.destroy_all if request.put?
115
- end
116
-
117
113
  def next!(options={})
118
114
  if @order.valid? && @order.next
119
115
  render 'spree/api/orders/show', status: options[:status] || 200
@@ -51,7 +51,7 @@ module Spree
51
51
  end
52
52
 
53
53
  def option_value_params
54
- params.require(:option_value).permit(permitted_option_type_attributes)
54
+ params.require(:option_value).permit(permitted_option_value_attributes)
55
55
  end
56
56
  end
57
57
  end
@@ -111,6 +111,13 @@ module Spree
111
111
  option_value.name.should == "Option Value"
112
112
  end
113
113
 
114
+ it "permits the correct attributes" do
115
+ controller.should_receive(:permitted_option_value_attributes)
116
+ api_put :update, :id => option_value.id, :option_value => {
117
+ :name => ""
118
+ }
119
+ end
120
+
114
121
  it "cannot update an option value with invalid attributes" do
115
122
  api_put :update, :id => option_value.id, :option_value => {
116
123
  :name => ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.7
19
+ version: 2.1.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.7
26
+ version: 2.1.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rabl
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
- rubygems_version: 2.2.0
257
+ rubygems_version: 2.2.2
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: Spree's API