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 +4 -4
- data/lib/utensils/database_cleaner.rb +5 -20
- data/lib/utensils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23503af5749904e3b31005cbc324459e4d51eec
|
4
|
+
data.tar.gz: 69b05da0a3dd54a677a100e8f0e42089f84df2ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3330533f4c49ebbecc8dcbcfea9113512801d84e9d2e4a545073a347429f0bcf13f4fd4b421307a0d8d4266880ef49a3d6e3c857a91b74e88f2c05c54dd129e4
|
7
|
+
data.tar.gz: ae321287eac02baac51ec94bc1c16e0e6115173ab2179087e65898caf7c658bf5ba4e838c3ac74b8de59ebc37731c342183a40a76f5365c6e52fc238ecb040be
|
@@ -1,23 +1,8 @@
|
|
1
1
|
RSpec.configure do |config|
|
2
|
-
|
3
|
-
|
4
|
-
DatabaseCleaner.
|
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
|
data/lib/utensils/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|