solidus_support 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: c61ea6181a19ea4907e19792ddd598104a01a910
4
- data.tar.gz: 7cd7e011d290050799473bf0ece44f3e319401f1
2
+ SHA256:
3
+ metadata.gz: 5f38daae0fcb1b2de8343abb23d59c80e553fd0e1c72c3d15e11414862ad8b05
4
+ data.tar.gz: b5f61ace5703a2dcf5e03775e4ea22db6a116a19b21ce803c819153dad7d7080
5
5
  SHA512:
6
- metadata.gz: 43fcc47c48a0d40bf5aecb990a84eb063e1c4c0b2c206f021525bcc0663d5d9bc283134096c7ac22b5df7575101d1422a1777b5adcb69c02fdf856ed87baff9e
7
- data.tar.gz: '070972977f0f406aed576d0a3ead8e1d2dd98b0d5c237e5fbf74c9ea808fdaf6c0d98b19794e01cb06e9aeb3735839c816cd9c4a6916637c8c6a4b617d5475e6'
6
+ metadata.gz: c920bb64d3fc147e2e86ca8edbe7356bff0273b98af6f08d45448dcdaa218b1a812f3f54a9d7bfe7cd26d4ad2091b67335bee21fa4453863f81d2e23b2dfb794
7
+ data.tar.gz: 6544d8cd2a38174b015871c4e267e8e92ab565e1a73483047e2a817f296875087d2de00f2f776576c971c2c6a16e068d5153536232606ad38501a2f4874e498e
@@ -25,21 +25,18 @@ RSpec.configure do |config|
25
25
 
26
26
  config.include Spree::TestingSupport::Preferences
27
27
 
28
- # Ensure Suite is set to use transactions for speed.
29
28
  config.before :suite do
30
29
  DatabaseCleaner.clean_with :truncation
31
30
  end
32
31
 
33
- # Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
34
- config.before :each do
32
+ # Around each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
33
+ config.around(:each) do |example|
35
34
  DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
36
- DatabaseCleaner.start
37
35
 
38
- reset_spree_preferences
39
- end
36
+ DatabaseCleaner.cleaning do
37
+ reset_spree_preferences
40
38
 
41
- # After each spec clean the database.
42
- config.after :each do
43
- DatabaseCleaner.clean
39
+ example.run
40
+ end
44
41
  end
45
42
  end
@@ -1,3 +1,3 @@
1
1
  module SolidusSupport
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-25 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.6.11
78
+ rubygems_version: 2.7.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: A common functionality for solidus extensions