waterpig 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/waterpig/database-cleaner.rb +6 -7
- data/lib/waterpig/template-refresh.rb +1 -0
- 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: 5ba1801656f48cbb9745fda0ca698f00774e4559
|
4
|
+
data.tar.gz: 7cbb8eb199b0a1e82e78b644d197e64974b2011d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb0977b22a40cc474c5758fa5f2d4f4bd0841cf5a7ad30f35c7773247937b907d0de010da789c2b07d527b51168b687ae71057809880ac849b9305417c9ca858
|
7
|
+
data.tar.gz: 36eaf853983c69b02deaee21a19220e9cf29f30254a355b7a06a5262897d1a6ec98a5d7923b2ab0556d33cee3846b9f0d6ce2405dc3826280b7f3d3d6dd3d3ff
|
@@ -75,17 +75,16 @@ RSpec.configure do |config|
|
|
75
75
|
config.after(:all) do
|
76
76
|
last_type = self.class.metadata[:type].to_s
|
77
77
|
end
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
#Before the first group following a refresh-group, refresh again.
|
79
|
+
#Faster than refreshing before and after all the feature groups
|
80
|
+
config.before(:all, :description => proc{|value, metadata| use_refresh?(config, metadata) }) do
|
81
|
+
unless config.waterpig_reset_types.map(&:to_s).include?(last_type)
|
81
82
|
Waterpig::TemplateRefresh.refresh_database(config.waterpig_test_database_config)
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
85
|
-
|
86
|
-
|
87
|
-
config.before(:all, :description => proc{|value, metadata| !use_refresh?(config, metadata) }) do
|
88
|
-
if config.waterpig_reset_types.include?(last_type)
|
86
|
+
config.after(:all, :description => proc{|value, metadata| use_refresh?(config, metadata)}) do
|
87
|
+
Waterpig::RequestWaitMiddleware.wait_for_idle do
|
89
88
|
Waterpig::TemplateRefresh.refresh_database(config.waterpig_test_database_config)
|
90
89
|
end
|
91
90
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waterpig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Judson Lester
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|
@@ -105,7 +105,7 @@ rdoc_options:
|
|
105
105
|
- --main
|
106
106
|
- doc/README
|
107
107
|
- --title
|
108
|
-
- waterpig-0.9.
|
108
|
+
- waterpig-0.9.2 Documentation
|
109
109
|
require_paths:
|
110
110
|
- lib/
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|