spree_zaez_clearsale 3.0.2 → 3.0.3

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: f00b8d860ec4f4de467431aad49df16a13b0f12e
4
- data.tar.gz: 63b5efe445cfff694bce338114e1dcfe9e53a40c
3
+ metadata.gz: 31dfca0a9c62364f63bf5da5b776c929e105036e
4
+ data.tar.gz: a353a5b03dc8e5241bb40b1f8d10702a99e1794d
5
5
  SHA512:
6
- metadata.gz: 89defcd4e3ae5f3fb68b7e1e6fe1b870a7314be6cb7fcb90c6fed2119173a303f1ccca7ffb2a135c7b2d8ca572a873386d43d6409fc7d5658e713a5f973ae7af
7
- data.tar.gz: 51f28efee958a18d8cf4d1202ae10d94cac373a9094facf59e774ef96fa40df064690547dbfb003f9074fbe2e21d59f01d388aa62222f36dff30a242a6bed817
6
+ metadata.gz: 03546837cbf89de7226d0317fe59da320fc7b4bba2f704d9c5e8cfa5b2f4f0be6a5545217e14a7adf78cae8ab22a3eff1b511b0f5c9168c63c3d1a1e9f1f9def
7
+ data.tar.gz: ac82f51c9c405bbec0d65e684e68443eca3d1012fb0f8f4afaba531f619911c68df4603c34385aeb5f4311bf77991164c6e93d77f493d19be7818f802ff8c2e1
@@ -15,6 +15,8 @@ class Spree::Admin::ClearSaleSettingsController < Spree::Admin::BaseController
15
15
  config[name] = value
16
16
  end
17
17
 
18
+ config[:test_mode] = false unless params.has_key? :test_mode
19
+
18
20
  # adiciona os providers na preference
19
21
  # junto de seu tipo de pagamento
20
22
  if params[:providers].present?
@@ -70,6 +70,13 @@ describe 'ClearSale Settings', type: :feature do
70
70
  expect(Spree::ClearSaleConfig.test_mode).to be true
71
71
  expect(find_field('test_mode')).to be_checked
72
72
 
73
+ # Test if the attribute can be false
74
+ find(:css, '#test_mode').set false
75
+ click_button 'Update'
76
+
77
+ expect(Spree::ClearSaleConfig.test_mode).to be false
78
+ expect(find_field('test_mode')).not_to be_checked
79
+
73
80
  # set default
74
81
  Spree::ClearSaleConfig.test_mode = false
75
82
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_zaez_clearsale'
5
- s.version = '3.0.2'
5
+ s.version = '3.0.3'
6
6
  s.summary = 'Add the ClearSale verification to Spree Commerce'
7
7
  s.description = 'Add the ClearSale verification to Spree Commerce'
8
8
  s.required_ruby_version = '>= 2.0.0'
@@ -36,4 +36,5 @@ Gem::Specification.new do |s|
36
36
  s.add_development_dependency 'guard-shell'
37
37
  s.add_development_dependency 'webmock'
38
38
  s.add_development_dependency 'better_errors'
39
+ s.add_development_dependency 'binding_of_caller'
39
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zaez_clearsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaez Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -276,6 +276,20 @@ dependencies:
276
276
  - - ">="
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: binding_of_caller
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
279
293
  description: Add the ClearSale verification to Spree Commerce
280
294
  email: contato@zaez.net
281
295
  executables: []
@@ -360,7 +374,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
374
  requirements:
361
375
  - none
362
376
  rubyforge_project:
363
- rubygems_version: 2.2.2
377
+ rubygems_version: 2.4.5.1
364
378
  signing_key:
365
379
  specification_version: 4
366
380
  summary: Add the ClearSale verification to Spree Commerce