utensils 1.4.1 → 1.4.2

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: 37fb433d971df5af7397084dbcb6500fbee9e04d
4
- data.tar.gz: 88e5df7fb76c44ad71e2f63a26aa9d8035b3145c
3
+ metadata.gz: b23503af5749904e3b31005cbc324459e4d51eec
4
+ data.tar.gz: 69b05da0a3dd54a677a100e8f0e42089f84df2ec
5
5
  SHA512:
6
- metadata.gz: b867fd670461814a4f37f5e635a965f50d1e9f7b44be318980b15a8aea8c489c23dce29064b334552c55df7643714c211953a0cee28042d1f6512a0af6d22bfb
7
- data.tar.gz: 58aa6618cfa11db31d05ffc38ac25861bf313db0dc1c7243e08c1cfdfc67357546175ed641504a0b8bb4397c2fc314f52512cafd5b510800d10acb836ba33f2b
6
+ metadata.gz: 3330533f4c49ebbecc8dcbcfea9113512801d84e9d2e4a545073a347429f0bcf13f4fd4b421307a0d8d4266880ef49a3d6e3c857a91b74e88f2c05c54dd129e4
7
+ data.tar.gz: ae321287eac02baac51ec94bc1c16e0e6115173ab2179087e65898caf7c658bf5ba4e838c3ac74b8de59ebc37731c342183a40a76f5365c6e52fc238ecb040be
@@ -1,23 +1,8 @@
1
1
  RSpec.configure do |config|
2
-
3
- config.before(:suite) do
4
- DatabaseCleaner.clean_with(:truncation)
2
+ config.around(:each) do |example|
3
+ DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
4
+ DatabaseCleaner.cleaning do
5
+ example.run
6
+ end
5
7
  end
6
-
7
- config.before(:each) do
8
- DatabaseCleaner.strategy = :transaction
9
- end
10
-
11
- config.before(:each, :js => true) do
12
- DatabaseCleaner.strategy = :truncation
13
- end
14
-
15
- config.before(:each) do
16
- DatabaseCleaner.start
17
- end
18
-
19
- config.after(:each) do
20
- DatabaseCleaner.clean
21
- end
22
-
23
8
  end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rspec stuff we use over and over again
14
14
  email:
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.2.2
57
+ rubygems_version: 2.4.3
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Rspec stuff we use over and over again