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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cac3c75de7c346b913bafadf07d0b06d024813c
4
- data.tar.gz: 5562e83ea984b490cc8bf19d7dae8d7a438c0224
3
+ metadata.gz: 5ba1801656f48cbb9745fda0ca698f00774e4559
4
+ data.tar.gz: 7cbb8eb199b0a1e82e78b644d197e64974b2011d
5
5
  SHA512:
6
- metadata.gz: 74a8c431b58f9d8e9ba1d3abc47109b4ade0ecde1d276b4bb465dbf462f6581eaeda14306d3222c0db6820958bcf82af5680cd4650172f85010da8b68910e9c4
7
- data.tar.gz: dfded4c03470f5dce9c4c59f5c292d1b7b118a4c17047ddbbf263548beb774c0e05c7559569e1c15586dfc078561fb8fb3ff9240ba7a4eda4ef3df160d3f2100
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
- config.before(:all, :description => proc{|value, metadata| use_refresh?(config, metadata)}) do
80
- Waterpig::RequestWaitMiddleware.wait_for_idle do
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
- #Before the first group following a refresh-group, refresh again.
86
- #Faster than refreshing before and after all the feature groups
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
@@ -123,4 +123,5 @@ begin
123
123
  end
124
124
  end
125
125
  rescue LoadError
126
+ warn "ActiveRecord not present"
126
127
  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.1
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-11 00:00:00.000000000 Z
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.1 Documentation
108
+ - waterpig-0.9.2 Documentation
109
109
  require_paths:
110
110
  - lib/
111
111
  required_ruby_version: !ruby/object:Gem::Requirement