webvalve 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: 16a362ac38ab2baeae75e81be2badff2ea0b5023
4
- data.tar.gz: 075c7a3057a847aaa6bd5662f196979d5e68e11e
3
+ metadata.gz: c2a84d98018ff9f33dc7363c670ffd8ae796927f
4
+ data.tar.gz: 13309e25e62a7e2c619c710df2ce4826f8051967
5
5
  SHA512:
6
- metadata.gz: 37b8e856fe3c7d4226a2d8d2244d0014486e6e6ba91afe9bbc79b8fc9355b5a4aa182d0979a0e3678b35acf1a8744ca9b46b928a44891f5b6cec1906e25584a8
7
- data.tar.gz: fc0b7b285d4be0c8cec073a19c97bc181bd45499d52e31d292c12eeee903cea82618d431c212a77f23d9fd2e652fccdbf1c403c58e427e7d8c7f89927e40b556
6
+ metadata.gz: bae415d8bd1cc24567451f2f62ee789dbe974d7e6e4716f00e6bcf609553b855fa97755ab1899cb6a112226e4b6ceeabc1279b87e008ccf4d781c002c1755df5
7
+ data.tar.gz: 8e4f11052f4722adf32a7ac9285c7b903e46972fb506ce793b816cc231298eb87c76749fd1764705ce42dbd7202b9870ab83d4604d8f3b9524b925dd980b1bbe
data/README.md CHANGED
@@ -2,6 +2,7 @@ WebValve
2
2
  ========
3
3
 
4
4
  [![Build Status](https://travis-ci.org/Betterment/webvalve.svg?branch=master)](https://travis-ci.org/Betterment/webvalve)
5
+ [![Gem Status](https://img.shields.io/gem/v/webvalve.svg)](https://rubygems.org/gems/webvalve)
5
6
 
6
7
  WebValve is a tool for defining and registering fake implementations of
7
8
  HTTP services and toggling between the real services and the fake ones
@@ -15,9 +16,19 @@ Check out [the Rails at Scale talk](https://www.youtube.com/watch?v=Nd9hnffxCP8)
15
16
 
16
17
  [![Rails @ Scale Talk](https://img.youtube.com/vi/Nd9hnffxCP8/0.jpg)](https://www.youtube.com/watch?v=Nd9hnffxCP8)
17
18
 
18
-
19
19
  ## Getting Started
20
20
 
21
+ WebValve is designed to work with Rails 4+.
22
+
23
+ ### Installation
24
+
25
+ You can add WebValve to your Gemfile with:
26
+ ```
27
+ gem 'webvalve'
28
+ ```
29
+
30
+ Then run `bundle install`.
31
+
21
32
  ### Network connections disabled by default
22
33
 
23
34
  The default mode in development and test is to disallow all HTTP network
@@ -182,6 +193,15 @@ The definition of `FakeService` is really simple. It's just a
182
193
  responses and it will raise when a route is requested but it is
183
194
  not registered.
184
195
 
196
+ ## Frequently Asked Questions
197
+
198
+ > Can I use WebValve in environments like staging and demo?
199
+
200
+ Yes! By default WebValve is only enabled in test and development
201
+ environments; however, it can be enabled in other environments by
202
+ setting `WEBVALVE_ENABLED=true`. This can be useful for spinning up
203
+ cheap, one-off environments for user-testing or demos.
204
+
185
205
  ## How to Contribute
186
206
 
187
207
  We would love for you to contribute! Anything that benefits the majority
data/Rakefile CHANGED
@@ -11,10 +11,17 @@ Bundler::GemHelper.install_tasks
11
11
 
12
12
  if Rails.env.development? || Rails.env.test?
13
13
  if defined? Dummy
14
- require 'rspec/core'
15
- require 'rspec/core/rake_task'
16
- RSpec::Core::RakeTask.new(:spec)
17
- task default: :spec
14
+ task(:default).clear
15
+ if ENV['APPRAISAL_INITIALIZED'] || ENV['TRAVIS']
16
+ require 'rspec/core'
17
+ require 'rspec/core/rake_task'
18
+ RSpec::Core::RakeTask.new(:spec)
19
+ task default: :spec
20
+ else
21
+ require 'appraisal'
22
+ Appraisal::Task.new
23
+ task default: :appraisal
24
+ end
18
25
  end
19
26
  end
20
27
 
data/lib/webvalve.rb CHANGED
@@ -1,13 +1,8 @@
1
1
  require 'set'
2
2
 
3
3
  module WebValve
4
- extend ActiveSupport::Autoload
5
- autoload :FakeService, 'webvalve/fake_service'
6
- autoload :FakeServiceWrapper, 'webvalve/fake_service_wrapper'
7
- autoload :FakeServiceConfig, 'webvalve/fake_service_config'
8
- autoload :Manager, 'webvalve/manager'
9
-
10
- ENABLED_ENVS = %w(development test).freeze
4
+ ALWAYS_ENABLED_ENVS = %w(development test).freeze
5
+ ENABLED_VALUES = %w(1 t true).freeze
11
6
 
12
7
  class << self
13
8
  # @!method setup
@@ -21,7 +16,17 @@ module WebValve
21
16
  delegate :setup, :register, :whitelist_url, :reset, to: :manager
22
17
 
23
18
  def enabled?
24
- Rails.env.in?(ENABLED_ENVS)
19
+ if Rails.env.in?(ALWAYS_ENABLED_ENVS)
20
+ if ENV.key? 'WEBVALVE_ENABLED'
21
+ Rails.logger.warn(<<~MESSAGE)
22
+ WARNING: Ignoring WEBVALVE_ENABLED environment variable setting (#{ENV['WEBVALVE_ENABLED']})
23
+ WebValve is always enabled in development and test environments.
24
+ MESSAGE
25
+ end
26
+ true
27
+ else
28
+ ENABLED_VALUES.include?(ENV['WEBVALVE_ENABLED'])
29
+ end
25
30
  end
26
31
 
27
32
  def config_paths
@@ -38,3 +43,7 @@ end
38
43
 
39
44
  require 'webvalve/instrumentation'
40
45
  require 'webvalve/engine'
46
+ require 'webvalve/fake_service'
47
+ require 'webvalve/fake_service_wrapper'
48
+ require 'webvalve/fake_service_config'
49
+ require 'webvalve/manager'
@@ -1,7 +1,5 @@
1
1
  module WebValve
2
2
  class FakeServiceConfig
3
- ENABLED_VALUES = %w(1 t true)
4
-
5
3
  attr_reader :service
6
4
 
7
5
  def initialize(service:, url: nil)
@@ -10,7 +8,7 @@ module WebValve
10
8
  end
11
9
 
12
10
  def should_intercept?
13
- Rails.env.test? ||
11
+ Rails.env.test? || # always intercept in test
14
12
  (WebValve.enabled? && !service_enabled_in_env?)
15
13
  end
16
14
 
@@ -39,7 +37,7 @@ module WebValve
39
37
  end
40
38
 
41
39
  def service_enabled_in_env?
42
- ENABLED_VALUES.include?(ENV["#{service_name.to_s.upcase}_ENABLED"])
40
+ WebValve::ENABLED_VALUES.include?(ENV["#{service_name.to_s.upcase}_ENABLED"])
43
41
  end
44
42
 
45
43
  def default_service_url
@@ -1,3 +1,3 @@
1
1
  module WebValve
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -3994,3 +3994,871 @@
3994
3994
   (0.0ms) begin transaction
3995
3995
  WebValve Request Captured (3.8ms) dummy.dev GET /widgets [200]
3996
3996
   (0.1ms) rollback transaction
3997
+  (0.0ms) begin transaction
3998
+  (0.0ms) rollback transaction
3999
+  (0.1ms) begin transaction
4000
+  (0.1ms) rollback transaction
4001
+  (0.1ms) begin transaction
4002
+  (0.1ms) rollback transaction
4003
+  (0.0ms) begin transaction
4004
+  (0.0ms) rollback transaction
4005
+  (0.1ms) begin transaction
4006
+  (0.2ms) rollback transaction
4007
+  (0.1ms) begin transaction
4008
+  (0.0ms) rollback transaction
4009
+  (0.0ms) begin transaction
4010
+  (0.1ms) rollback transaction
4011
+  (0.0ms) begin transaction
4012
+  (0.1ms) rollback transaction
4013
+  (0.0ms) begin transaction
4014
+  (0.0ms) rollback transaction
4015
+  (0.0ms) begin transaction
4016
+  (0.0ms) rollback transaction
4017
+  (0.0ms) begin transaction
4018
+  (0.0ms) rollback transaction
4019
+  (0.0ms) begin transaction
4020
+  (0.2ms) rollback transaction
4021
+  (0.1ms) begin transaction
4022
+ WebValve Request Captured (2.2ms) dummy.dev GET /widgets [200]
4023
+  (0.1ms) rollback transaction
4024
+  (0.1ms) begin transaction
4025
+ WebValve Request Captured (0.5ms) dummy.dev GET /foos []
4026
+  (0.0ms) rollback transaction
4027
+  (0.0ms) begin transaction
4028
+  (0.0ms) rollback transaction
4029
+  (0.0ms) begin transaction
4030
+  (0.0ms) rollback transaction
4031
+  (0.0ms) begin transaction
4032
+  (0.0ms) rollback transaction
4033
+  (0.0ms) begin transaction
4034
+  (0.0ms) rollback transaction
4035
+  (0.1ms) begin transaction
4036
+  (0.0ms) rollback transaction
4037
+  (0.1ms) begin transaction
4038
+  (0.1ms) rollback transaction
4039
+  (0.1ms) begin transaction
4040
+  (0.0ms) rollback transaction
4041
+  (0.0ms) begin transaction
4042
+  (0.0ms) rollback transaction
4043
+  (0.0ms) begin transaction
4044
+  (0.0ms) rollback transaction
4045
+  (0.3ms) begin transaction
4046
+  (0.0ms) rollback transaction
4047
+  (0.0ms) begin transaction
4048
+  (0.1ms) rollback transaction
4049
+  (0.0ms) begin transaction
4050
+  (0.0ms) rollback transaction
4051
+  (0.0ms) begin transaction
4052
+  (0.0ms) rollback transaction
4053
+  (0.0ms) begin transaction
4054
+  (0.0ms) rollback transaction
4055
+  (0.1ms) begin transaction
4056
+  (0.0ms) rollback transaction
4057
+  (0.0ms) begin transaction
4058
+  (0.0ms) rollback transaction
4059
+  (0.0ms) begin transaction
4060
+  (0.0ms) rollback transaction
4061
+  (0.0ms) begin transaction
4062
+  (0.1ms) rollback transaction
4063
+  (0.1ms) begin transaction
4064
+  (0.0ms) rollback transaction
4065
+  (0.0ms) begin transaction
4066
+  (0.0ms) rollback transaction
4067
+  (0.0ms) begin transaction
4068
+  (0.0ms) rollback transaction
4069
+  (0.0ms) begin transaction
4070
+  (0.0ms) rollback transaction
4071
+  (0.0ms) begin transaction
4072
+  (0.1ms) rollback transaction
4073
+  (0.0ms) begin transaction
4074
+  (0.0ms) rollback transaction
4075
+  (0.0ms) begin transaction
4076
+  (0.0ms) rollback transaction
4077
+  (0.1ms) begin transaction
4078
+  (0.2ms) rollback transaction
4079
+  (0.3ms) begin transaction
4080
+  (0.1ms) rollback transaction
4081
+  (0.1ms) begin transaction
4082
+  (0.1ms) rollback transaction
4083
+  (0.1ms) begin transaction
4084
+  (0.0ms) rollback transaction
4085
+  (0.0ms) begin transaction
4086
+  (0.0ms) rollback transaction
4087
+  (0.0ms) begin transaction
4088
+  (0.0ms) rollback transaction
4089
+  (0.1ms) begin transaction
4090
+  (0.0ms) rollback transaction
4091
+  (0.0ms) begin transaction
4092
+  (0.0ms) rollback transaction
4093
+  (0.0ms) begin transaction
4094
+  (0.0ms) rollback transaction
4095
+  (0.0ms) begin transaction
4096
+  (0.0ms) rollback transaction
4097
+  (0.0ms) begin transaction
4098
+  (0.0ms) rollback transaction
4099
+  (0.0ms) begin transaction
4100
+  (0.0ms) rollback transaction
4101
+  (0.0ms) begin transaction
4102
+  (0.0ms) rollback transaction
4103
+  (0.1ms) begin transaction
4104
+  (0.2ms) rollback transaction
4105
+  (0.3ms) begin transaction
4106
+  (0.2ms) rollback transaction
4107
+  (0.1ms) begin transaction
4108
+ WebValve Request Captured (2.0ms) dummy.dev GET /widgets [200]
4109
+  (0.1ms) rollback transaction
4110
+  (0.1ms) begin transaction
4111
+ WebValve Request Captured (0.5ms) dummy.dev GET /foos []
4112
+  (0.1ms) rollback transaction
4113
+  (0.4ms) begin transaction
4114
+  (0.1ms) rollback transaction
4115
+  (0.0ms) begin transaction
4116
+  (0.0ms) rollback transaction
4117
+  (0.0ms) begin transaction
4118
+  (0.1ms) rollback transaction
4119
+  (0.1ms) begin transaction
4120
+  (0.1ms) rollback transaction
4121
+  (0.0ms) begin transaction
4122
+  (0.0ms) rollback transaction
4123
+  (0.0ms) begin transaction
4124
+  (0.0ms) rollback transaction
4125
+  (0.0ms) begin transaction
4126
+  (0.0ms) rollback transaction
4127
+  (0.0ms) begin transaction
4128
+  (0.0ms) rollback transaction
4129
+  (0.0ms) begin transaction
4130
+  (0.0ms) rollback transaction
4131
+  (0.0ms) begin transaction
4132
+  (0.0ms) rollback transaction
4133
+  (0.0ms) begin transaction
4134
+  (0.0ms) rollback transaction
4135
+  (0.1ms) begin transaction
4136
+  (0.0ms) rollback transaction
4137
+  (0.0ms) begin transaction
4138
+  (0.1ms) rollback transaction
4139
+  (0.0ms) begin transaction
4140
+  (0.0ms) rollback transaction
4141
+  (0.1ms) begin transaction
4142
+  (0.0ms) rollback transaction
4143
+  (0.1ms) begin transaction
4144
+  (0.0ms) rollback transaction
4145
+  (0.0ms) begin transaction
4146
+  (0.0ms) rollback transaction
4147
+  (0.0ms) begin transaction
4148
+  (0.0ms) rollback transaction
4149
+  (0.1ms) begin transaction
4150
+  (0.1ms) rollback transaction
4151
+  (0.0ms) begin transaction
4152
+  (0.1ms) rollback transaction
4153
+  (0.0ms) begin transaction
4154
+  (0.0ms) rollback transaction
4155
+  (0.0ms) begin transaction
4156
+  (0.1ms) rollback transaction
4157
+  (0.0ms) begin transaction
4158
+  (0.0ms) rollback transaction
4159
+  (0.0ms) begin transaction
4160
+  (0.0ms) rollback transaction
4161
+  (0.0ms) begin transaction
4162
+  (0.1ms) rollback transaction
4163
+  (0.0ms) begin transaction
4164
+  (0.0ms) rollback transaction
4165
+  (0.1ms) begin transaction
4166
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4167
+  (0.0ms) rollback transaction
4168
+  (0.0ms) begin transaction
4169
+ WebValve Request Captured (2.1ms) dummy.dev GET /widgets [200]
4170
+  (0.1ms) rollback transaction
4171
+  (2.4ms) begin transaction
4172
+  (0.0ms) rollback transaction
4173
+  (0.0ms) begin transaction
4174
+  (0.1ms) rollback transaction
4175
+  (0.1ms) begin transaction
4176
+  (0.0ms) rollback transaction
4177
+  (0.0ms) begin transaction
4178
+  (0.0ms) rollback transaction
4179
+  (0.1ms) begin transaction
4180
+  (0.0ms) rollback transaction
4181
+  (0.1ms) begin transaction
4182
+  (0.1ms) rollback transaction
4183
+  (0.1ms) begin transaction
4184
+  (0.1ms) rollback transaction
4185
+  (0.1ms) begin transaction
4186
+  (0.1ms) rollback transaction
4187
+  (0.0ms) begin transaction
4188
+  (0.0ms) rollback transaction
4189
+  (0.0ms) begin transaction
4190
+  (0.1ms) rollback transaction
4191
+  (0.0ms) begin transaction
4192
+  (0.0ms) rollback transaction
4193
+  (0.0ms) begin transaction
4194
+  (0.1ms) rollback transaction
4195
+  (0.0ms) begin transaction
4196
+  (0.0ms) rollback transaction
4197
+  (0.1ms) begin transaction
4198
+  (0.0ms) rollback transaction
4199
+  (0.1ms) begin transaction
4200
+  (0.1ms) rollback transaction
4201
+  (0.1ms) begin transaction
4202
+  (0.2ms) rollback transaction
4203
+  (0.1ms) begin transaction
4204
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4205
+  (0.0ms) rollback transaction
4206
+  (0.1ms) begin transaction
4207
+ WebValve Request Captured (3.7ms) dummy.dev GET /widgets [200]
4208
+  (0.1ms) rollback transaction
4209
+  (0.1ms) begin transaction
4210
+  (0.1ms) rollback transaction
4211
+  (0.1ms) begin transaction
4212
+  (0.0ms) rollback transaction
4213
+  (0.0ms) begin transaction
4214
+  (0.0ms) rollback transaction
4215
+  (0.0ms) begin transaction
4216
+  (0.0ms) rollback transaction
4217
+  (0.0ms) begin transaction
4218
+  (0.0ms) rollback transaction
4219
+  (0.0ms) begin transaction
4220
+  (0.0ms) rollback transaction
4221
+  (0.1ms) begin transaction
4222
+  (0.0ms) rollback transaction
4223
+  (0.0ms) begin transaction
4224
+  (0.0ms) rollback transaction
4225
+  (0.1ms) begin transaction
4226
+  (0.0ms) rollback transaction
4227
+  (0.0ms) begin transaction
4228
+  (0.0ms) rollback transaction
4229
+  (0.3ms) begin transaction
4230
+  (0.1ms) rollback transaction
4231
+  (0.0ms) begin transaction
4232
+  (0.0ms) rollback transaction
4233
+  (0.0ms) begin transaction
4234
+  (0.2ms) rollback transaction
4235
+  (0.1ms) begin transaction
4236
+  (0.1ms) rollback transaction
4237
+  (0.0ms) begin transaction
4238
+  (0.0ms) rollback transaction
4239
+  (0.0ms) begin transaction
4240
+  (0.0ms) rollback transaction
4241
+  (0.0ms) begin transaction
4242
+  (0.1ms) rollback transaction
4243
+  (0.0ms) begin transaction
4244
+  (0.1ms) rollback transaction
4245
+  (0.0ms) begin transaction
4246
+  (0.0ms) rollback transaction
4247
+  (0.0ms) begin transaction
4248
+  (0.0ms) rollback transaction
4249
+  (0.0ms) begin transaction
4250
+  (0.0ms) rollback transaction
4251
+  (0.0ms) begin transaction
4252
+  (0.0ms) rollback transaction
4253
+  (0.1ms) begin transaction
4254
+ WebValve Request Captured (0.8ms) dummy.dev GET /foos []
4255
+  (0.0ms) rollback transaction
4256
+  (0.0ms) begin transaction
4257
+ WebValve Request Captured (2.1ms) dummy.dev GET /widgets [200]
4258
+  (0.0ms) rollback transaction
4259
+  (0.0ms) begin transaction
4260
+  (0.0ms) rollback transaction
4261
+  (0.0ms) begin transaction
4262
+  (0.1ms) rollback transaction
4263
+  (0.1ms) begin transaction
4264
+  (0.0ms) rollback transaction
4265
+  (0.2ms) begin transaction
4266
+  (0.3ms) rollback transaction
4267
+  (0.1ms) begin transaction
4268
+  (0.1ms) rollback transaction
4269
+  (0.0ms) begin transaction
4270
+  (0.0ms) rollback transaction
4271
+  (0.0ms) begin transaction
4272
+  (0.0ms) rollback transaction
4273
+  (0.0ms) begin transaction
4274
+  (0.0ms) rollback transaction
4275
+  (0.0ms) begin transaction
4276
+  (0.0ms) rollback transaction
4277
+  (0.0ms) begin transaction
4278
+  (0.0ms) rollback transaction
4279
+  (0.0ms) begin transaction
4280
+  (0.1ms) rollback transaction
4281
+  (0.1ms) begin transaction
4282
+  (0.0ms) rollback transaction
4283
+  (0.0ms) begin transaction
4284
+  (0.0ms) rollback transaction
4285
+  (0.0ms) begin transaction
4286
+  (0.0ms) rollback transaction
4287
+  (0.0ms) begin transaction
4288
+  (0.0ms) rollback transaction
4289
+  (0.0ms) begin transaction
4290
+  (0.1ms) rollback transaction
4291
+  (0.1ms) begin transaction
4292
+  (0.1ms) rollback transaction
4293
+  (0.0ms) begin transaction
4294
+  (0.0ms) rollback transaction
4295
+  (0.0ms) begin transaction
4296
+  (0.0ms) rollback transaction
4297
+  (0.1ms) begin transaction
4298
+  (0.0ms) rollback transaction
4299
+  (0.0ms) begin transaction
4300
+  (0.1ms) rollback transaction
4301
+  (0.1ms) begin transaction
4302
+  (0.0ms) rollback transaction
4303
+  (0.0ms) begin transaction
4304
+  (0.0ms) rollback transaction
4305
+  (0.0ms) begin transaction
4306
+  (0.0ms) rollback transaction
4307
+  (0.1ms) begin transaction
4308
+  (0.0ms) rollback transaction
4309
+  (0.0ms) begin transaction
4310
+  (0.0ms) rollback transaction
4311
+  (0.0ms) begin transaction
4312
+  (0.0ms) rollback transaction
4313
+  (0.0ms) begin transaction
4314
+  (0.0ms) rollback transaction
4315
+  (0.0ms) begin transaction
4316
+  (0.0ms) rollback transaction
4317
+  (0.0ms) begin transaction
4318
+  (0.0ms) rollback transaction
4319
+  (0.0ms) begin transaction
4320
+  (0.0ms) rollback transaction
4321
+  (0.0ms) begin transaction
4322
+  (0.0ms) rollback transaction
4323
+  (0.0ms) begin transaction
4324
+  (0.0ms) rollback transaction
4325
+  (0.0ms) begin transaction
4326
+  (0.0ms) rollback transaction
4327
+  (0.0ms) begin transaction
4328
+  (0.0ms) rollback transaction
4329
+  (0.0ms) begin transaction
4330
+  (0.0ms) rollback transaction
4331
+  (0.1ms) begin transaction
4332
+  (0.1ms) rollback transaction
4333
+  (0.1ms) begin transaction
4334
+  (0.0ms) rollback transaction
4335
+  (0.1ms) begin transaction
4336
+  (0.1ms) rollback transaction
4337
+  (0.1ms) begin transaction
4338
+  (0.1ms) rollback transaction
4339
+  (0.1ms) begin transaction
4340
+ WebValve Request Captured (2.6ms) dummy.dev GET /widgets [200]
4341
+  (0.1ms) rollback transaction
4342
+  (0.0ms) begin transaction
4343
+ WebValve Request Captured (0.9ms) dummy.dev GET /foos []
4344
+  (0.1ms) rollback transaction
4345
+  (2.5ms) begin transaction
4346
+  (0.1ms) rollback transaction
4347
+  (0.1ms) begin transaction
4348
+ WebValve Request Captured (4.2ms) dummy.dev GET /widgets [200]
4349
+  (0.1ms) rollback transaction
4350
+  (0.1ms) begin transaction
4351
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4352
+  (0.0ms) rollback transaction
4353
+  (0.0ms) begin transaction
4354
+  (0.0ms) rollback transaction
4355
+  (0.1ms) begin transaction
4356
+  (0.1ms) rollback transaction
4357
+  (0.1ms) begin transaction
4358
+  (0.1ms) rollback transaction
4359
+  (0.1ms) begin transaction
4360
+  (0.0ms) rollback transaction
4361
+  (0.0ms) begin transaction
4362
+  (0.1ms) rollback transaction
4363
+  (0.0ms) begin transaction
4364
+  (0.0ms) rollback transaction
4365
+  (0.1ms) begin transaction
4366
+  (0.0ms) rollback transaction
4367
+  (0.0ms) begin transaction
4368
+  (0.0ms) rollback transaction
4369
+  (0.0ms) begin transaction
4370
+  (0.0ms) rollback transaction
4371
+  (0.0ms) begin transaction
4372
+  (0.0ms) rollback transaction
4373
+  (0.0ms) begin transaction
4374
+  (0.0ms) rollback transaction
4375
+  (0.0ms) begin transaction
4376
+  (0.0ms) rollback transaction
4377
+  (0.0ms) begin transaction
4378
+  (0.1ms) rollback transaction
4379
+  (0.1ms) begin transaction
4380
+  (0.0ms) rollback transaction
4381
+  (0.0ms) begin transaction
4382
+  (0.0ms) rollback transaction
4383
+  (0.0ms) begin transaction
4384
+  (0.0ms) rollback transaction
4385
+  (0.0ms) begin transaction
4386
+  (0.0ms) rollback transaction
4387
+  (0.0ms) begin transaction
4388
+  (0.0ms) rollback transaction
4389
+  (0.0ms) begin transaction
4390
+  (0.0ms) rollback transaction
4391
+  (0.0ms) begin transaction
4392
+  (0.0ms) rollback transaction
4393
+  (0.0ms) begin transaction
4394
+  (0.0ms) rollback transaction
4395
+  (0.0ms) begin transaction
4396
+  (0.1ms) rollback transaction
4397
+  (0.0ms) begin transaction
4398
+  (0.0ms) rollback transaction
4399
+  (0.0ms) begin transaction
4400
+  (0.0ms) rollback transaction
4401
+  (0.0ms) begin transaction
4402
+  (0.0ms) rollback transaction
4403
+  (0.3ms) begin transaction
4404
+  (0.1ms) rollback transaction
4405
+  (0.3ms) begin transaction
4406
+  (0.0ms) rollback transaction
4407
+  (0.3ms) begin transaction
4408
+  (0.0ms) rollback transaction
4409
+  (0.0ms) begin transaction
4410
+  (0.0ms) rollback transaction
4411
+  (0.1ms) begin transaction
4412
+  (0.0ms) rollback transaction
4413
+  (0.0ms) begin transaction
4414
+  (0.0ms) rollback transaction
4415
+  (0.3ms) begin transaction
4416
+  (0.1ms) rollback transaction
4417
+  (0.0ms) begin transaction
4418
+  (0.0ms) rollback transaction
4419
+  (0.0ms) begin transaction
4420
+  (0.0ms) rollback transaction
4421
+  (0.0ms) begin transaction
4422
+  (0.0ms) rollback transaction
4423
+  (0.0ms) begin transaction
4424
+  (0.0ms) rollback transaction
4425
+  (0.0ms) begin transaction
4426
+  (0.0ms) rollback transaction
4427
+  (0.1ms) begin transaction
4428
+  (0.0ms) rollback transaction
4429
+  (0.0ms) begin transaction
4430
+  (0.0ms) rollback transaction
4431
+  (0.0ms) begin transaction
4432
+  (0.0ms) rollback transaction
4433
+  (0.0ms) begin transaction
4434
+  (0.0ms) rollback transaction
4435
+  (2.4ms) begin transaction
4436
+  (0.1ms) rollback transaction
4437
+  (0.3ms) begin transaction
4438
+  (0.1ms) rollback transaction
4439
+  (0.2ms) begin transaction
4440
+  (0.1ms) rollback transaction
4441
+  (0.3ms) begin transaction
4442
+  (0.1ms) rollback transaction
4443
+  (0.2ms) begin transaction
4444
+  (0.0ms) rollback transaction
4445
+  (0.0ms) begin transaction
4446
+  (0.1ms) rollback transaction
4447
+  (0.0ms) begin transaction
4448
+  (0.0ms) rollback transaction
4449
+  (0.0ms) begin transaction
4450
+  (0.0ms) rollback transaction
4451
+  (0.0ms) begin transaction
4452
+  (0.0ms) rollback transaction
4453
+  (0.0ms) begin transaction
4454
+  (0.0ms) rollback transaction
4455
+  (0.0ms) begin transaction
4456
+  (0.0ms) rollback transaction
4457
+  (0.0ms) begin transaction
4458
+  (0.0ms) rollback transaction
4459
+  (0.0ms) begin transaction
4460
+  (0.0ms) rollback transaction
4461
+  (0.0ms) begin transaction
4462
+  (0.0ms) rollback transaction
4463
+  (0.0ms) begin transaction
4464
+  (0.0ms) rollback transaction
4465
+  (0.0ms) begin transaction
4466
+  (0.0ms) rollback transaction
4467
+  (0.3ms) begin transaction
4468
+  (0.0ms) rollback transaction
4469
+  (0.0ms) begin transaction
4470
+  (0.0ms) rollback transaction
4471
+  (0.0ms) begin transaction
4472
+  (0.0ms) rollback transaction
4473
+  (0.0ms) begin transaction
4474
+  (0.0ms) rollback transaction
4475
+  (0.0ms) begin transaction
4476
+  (0.0ms) rollback transaction
4477
+  (0.0ms) begin transaction
4478
+  (0.0ms) rollback transaction
4479
+  (0.0ms) begin transaction
4480
+  (0.0ms) rollback transaction
4481
+  (0.0ms) begin transaction
4482
+  (0.0ms) rollback transaction
4483
+  (0.0ms) begin transaction
4484
+  (0.0ms) rollback transaction
4485
+  (0.0ms) begin transaction
4486
+  (0.0ms) rollback transaction
4487
+  (0.0ms) begin transaction
4488
+  (0.0ms) rollback transaction
4489
+  (0.0ms) begin transaction
4490
+  (0.0ms) rollback transaction
4491
+  (2.4ms) begin transaction
4492
+  (0.0ms) rollback transaction
4493
+  (0.0ms) begin transaction
4494
+  (0.0ms) rollback transaction
4495
+  (0.0ms) begin transaction
4496
+  (0.0ms) rollback transaction
4497
+  (0.0ms) begin transaction
4498
+  (0.0ms) rollback transaction
4499
+  (0.0ms) begin transaction
4500
+  (0.1ms) rollback transaction
4501
+  (0.1ms) begin transaction
4502
+  (0.1ms) rollback transaction
4503
+  (0.0ms) begin transaction
4504
+  (0.0ms) rollback transaction
4505
+  (0.5ms) begin transaction
4506
+  (0.0ms) rollback transaction
4507
+  (0.0ms) begin transaction
4508
+  (0.0ms) rollback transaction
4509
+  (0.0ms) begin transaction
4510
+  (0.0ms) rollback transaction
4511
+  (0.0ms) begin transaction
4512
+  (0.0ms) rollback transaction
4513
+  (0.0ms) begin transaction
4514
+  (0.0ms) rollback transaction
4515
+  (0.0ms) begin transaction
4516
+  (0.0ms) rollback transaction
4517
+  (0.0ms) begin transaction
4518
+  (0.0ms) rollback transaction
4519
+  (0.0ms) begin transaction
4520
+  (0.0ms) rollback transaction
4521
+  (0.0ms) begin transaction
4522
+  (0.0ms) rollback transaction
4523
+  (0.0ms) begin transaction
4524
+  (0.0ms) rollback transaction
4525
+  (0.0ms) begin transaction
4526
+  (0.0ms) rollback transaction
4527
+  (0.0ms) begin transaction
4528
+  (0.0ms) rollback transaction
4529
+  (0.0ms) begin transaction
4530
+  (0.0ms) rollback transaction
4531
+  (0.0ms) begin transaction
4532
+  (0.1ms) rollback transaction
4533
+  (0.0ms) begin transaction
4534
+  (0.0ms) rollback transaction
4535
+  (0.0ms) begin transaction
4536
+  (0.1ms) rollback transaction
4537
+  (0.0ms) begin transaction
4538
+  (0.0ms) rollback transaction
4539
+  (0.0ms) begin transaction
4540
+  (0.0ms) rollback transaction
4541
+  (0.0ms) begin transaction
4542
+  (0.0ms) rollback transaction
4543
+  (0.0ms) begin transaction
4544
+  (0.0ms) rollback transaction
4545
+  (0.0ms) begin transaction
4546
+  (0.0ms) rollback transaction
4547
+  (0.0ms) begin transaction
4548
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4549
+  (0.1ms) rollback transaction
4550
+  (0.0ms) begin transaction
4551
+ WebValve Request Captured (3.0ms) dummy.dev GET /widgets [200]
4552
+  (0.0ms) rollback transaction
4553
+  (0.3ms) begin transaction
4554
+  (0.0ms) rollback transaction
4555
+  (0.0ms) begin transaction
4556
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4557
+  (0.0ms) rollback transaction
4558
+  (0.1ms) begin transaction
4559
+ WebValve Request Captured (2.0ms) dummy.dev GET /widgets [200]
4560
+  (0.1ms) rollback transaction
4561
+  (0.0ms) begin transaction
4562
+  (0.0ms) rollback transaction
4563
+  (0.0ms) begin transaction
4564
+  (0.0ms) rollback transaction
4565
+  (0.0ms) begin transaction
4566
+  (0.1ms) rollback transaction
4567
+  (0.0ms) begin transaction
4568
+  (0.0ms) rollback transaction
4569
+  (0.1ms) begin transaction
4570
+  (0.0ms) rollback transaction
4571
+  (0.0ms) begin transaction
4572
+  (0.0ms) rollback transaction
4573
+  (0.0ms) begin transaction
4574
+  (0.0ms) rollback transaction
4575
+  (0.0ms) begin transaction
4576
+  (0.0ms) rollback transaction
4577
+  (0.0ms) begin transaction
4578
+  (0.0ms) rollback transaction
4579
+  (0.0ms) begin transaction
4580
+  (0.0ms) rollback transaction
4581
+  (0.0ms) begin transaction
4582
+  (0.0ms) rollback transaction
4583
+  (0.0ms) begin transaction
4584
+  (0.0ms) rollback transaction
4585
+  (0.0ms) begin transaction
4586
+  (0.0ms) rollback transaction
4587
+  (0.0ms) begin transaction
4588
+  (0.0ms) rollback transaction
4589
+  (0.0ms) begin transaction
4590
+  (0.0ms) rollback transaction
4591
+  (0.0ms) begin transaction
4592
+  (0.0ms) rollback transaction
4593
+  (0.0ms) begin transaction
4594
+  (0.0ms) rollback transaction
4595
+  (0.0ms) begin transaction
4596
+  (0.0ms) rollback transaction
4597
+  (0.1ms) begin transaction
4598
+  (0.0ms) rollback transaction
4599
+  (0.0ms) begin transaction
4600
+  (0.0ms) rollback transaction
4601
+  (0.0ms) begin transaction
4602
+  (0.1ms) rollback transaction
4603
+  (0.0ms) begin transaction
4604
+  (0.0ms) rollback transaction
4605
+  (0.0ms) begin transaction
4606
+  (0.0ms) rollback transaction
4607
+  (0.0ms) begin transaction
4608
+  (0.0ms) rollback transaction
4609
+  (0.1ms) begin transaction
4610
+  (0.2ms) rollback transaction
4611
+  (0.1ms) begin transaction
4612
+  (0.0ms) rollback transaction
4613
+  (0.0ms) begin transaction
4614
+  (0.0ms) rollback transaction
4615
+  (0.2ms) begin transaction
4616
+  (0.0ms) rollback transaction
4617
+  (0.1ms) begin transaction
4618
+ WebValve Request Captured (1.7ms) dummy.dev GET /widgets [200]
4619
+  (0.0ms) rollback transaction
4620
+  (0.1ms) begin transaction
4621
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4622
+  (0.1ms) rollback transaction
4623
+  (0.1ms) begin transaction
4624
+  (0.0ms) rollback transaction
4625
+  (0.0ms) begin transaction
4626
+  (0.0ms) rollback transaction
4627
+  (0.1ms) begin transaction
4628
+  (0.0ms) rollback transaction
4629
+  (0.1ms) begin transaction
4630
+  (0.1ms) rollback transaction
4631
+  (0.0ms) begin transaction
4632
+  (0.0ms) rollback transaction
4633
+  (0.0ms) begin transaction
4634
+  (0.0ms) rollback transaction
4635
+  (0.0ms) begin transaction
4636
+  (0.0ms) rollback transaction
4637
+  (0.0ms) begin transaction
4638
+  (0.0ms) rollback transaction
4639
+  (0.0ms) begin transaction
4640
+  (0.0ms) rollback transaction
4641
+  (0.0ms) begin transaction
4642
+  (0.1ms) rollback transaction
4643
+  (0.0ms) begin transaction
4644
+  (0.0ms) rollback transaction
4645
+  (0.0ms) begin transaction
4646
+  (0.0ms) rollback transaction
4647
+  (0.0ms) begin transaction
4648
+  (0.0ms) rollback transaction
4649
+  (0.0ms) begin transaction
4650
+  (0.0ms) rollback transaction
4651
+  (0.0ms) begin transaction
4652
+  (0.0ms) rollback transaction
4653
+  (0.0ms) begin transaction
4654
+  (0.1ms) rollback transaction
4655
+  (0.0ms) begin transaction
4656
+  (0.0ms) rollback transaction
4657
+  (0.0ms) begin transaction
4658
+  (0.0ms) rollback transaction
4659
+  (0.0ms) begin transaction
4660
+  (0.0ms) rollback transaction
4661
+  (0.0ms) begin transaction
4662
+  (0.0ms) rollback transaction
4663
+  (0.0ms) begin transaction
4664
+  (0.1ms) rollback transaction
4665
+  (0.0ms) begin transaction
4666
+  (0.0ms) rollback transaction
4667
+  (0.0ms) begin transaction
4668
+  (0.0ms) rollback transaction
4669
+  (0.0ms) begin transaction
4670
+  (0.0ms) rollback transaction
4671
+  (0.0ms) begin transaction
4672
+  (0.0ms) rollback transaction
4673
+  (0.0ms) begin transaction
4674
+  (0.0ms) rollback transaction
4675
+  (0.1ms) begin transaction
4676
+  (0.0ms) rollback transaction
4677
+  (0.3ms) begin transaction
4678
+  (0.1ms) rollback transaction
4679
+  (0.2ms) begin transaction
4680
+  (0.0ms) rollback transaction
4681
+  (0.0ms) begin transaction
4682
+  (0.0ms) rollback transaction
4683
+  (0.0ms) begin transaction
4684
+  (0.0ms) rollback transaction
4685
+  (0.0ms) begin transaction
4686
+  (0.0ms) rollback transaction
4687
+  (0.0ms) begin transaction
4688
+  (0.0ms) rollback transaction
4689
+  (0.0ms) begin transaction
4690
+ WebValve Request Captured (1.7ms) dummy.dev GET /widgets [200]
4691
+  (0.1ms) rollback transaction
4692
+  (0.1ms) begin transaction
4693
+ WebValve Request Captured (0.3ms) dummy.dev GET /foos []
4694
+  (0.0ms) rollback transaction
4695
+  (0.0ms) begin transaction
4696
+  (0.0ms) rollback transaction
4697
+  (0.0ms) begin transaction
4698
+  (0.0ms) rollback transaction
4699
+  (0.0ms) begin transaction
4700
+  (0.1ms) rollback transaction
4701
+  (0.0ms) begin transaction
4702
+  (0.0ms) rollback transaction
4703
+  (0.0ms) begin transaction
4704
+  (0.0ms) rollback transaction
4705
+  (0.0ms) begin transaction
4706
+  (0.1ms) rollback transaction
4707
+  (0.1ms) begin transaction
4708
+  (0.1ms) rollback transaction
4709
+  (0.0ms) begin transaction
4710
+  (0.0ms) rollback transaction
4711
+  (0.0ms) begin transaction
4712
+  (0.0ms) rollback transaction
4713
+  (0.0ms) begin transaction
4714
+  (0.1ms) rollback transaction
4715
+  (0.0ms) begin transaction
4716
+  (0.0ms) rollback transaction
4717
+  (0.0ms) begin transaction
4718
+  (0.0ms) rollback transaction
4719
+  (0.0ms) begin transaction
4720
+  (0.0ms) rollback transaction
4721
+  (0.0ms) begin transaction
4722
+  (0.1ms) rollback transaction
4723
+  (0.0ms) begin transaction
4724
+  (0.0ms) rollback transaction
4725
+  (0.0ms) begin transaction
4726
+  (0.0ms) rollback transaction
4727
+  (0.0ms) begin transaction
4728
+  (0.0ms) rollback transaction
4729
+  (0.0ms) begin transaction
4730
+  (0.0ms) rollback transaction
4731
+  (0.0ms) begin transaction
4732
+  (0.0ms) rollback transaction
4733
+  (0.0ms) begin transaction
4734
+  (0.0ms) rollback transaction
4735
+  (0.0ms) begin transaction
4736
+  (0.0ms) rollback transaction
4737
+  (0.0ms) begin transaction
4738
+  (0.0ms) rollback transaction
4739
+  (0.0ms) begin transaction
4740
+  (0.0ms) rollback transaction
4741
+  (0.2ms) begin transaction
4742
+  (0.0ms) rollback transaction
4743
+  (0.1ms) begin transaction
4744
+  (0.0ms) rollback transaction
4745
+  (0.0ms) begin transaction
4746
+  (0.0ms) rollback transaction
4747
+  (0.0ms) begin transaction
4748
+  (0.0ms) rollback transaction
4749
+  (0.0ms) begin transaction
4750
+  (0.0ms) rollback transaction
4751
+  (0.0ms) begin transaction
4752
+  (0.0ms) rollback transaction
4753
+  (0.0ms) begin transaction
4754
+  (0.0ms) rollback transaction
4755
+  (0.0ms) begin transaction
4756
+  (0.0ms) rollback transaction
4757
+  (0.0ms) begin transaction
4758
+  (0.1ms) rollback transaction
4759
+  (0.0ms) begin transaction
4760
+  (0.0ms) rollback transaction
4761
+  (0.0ms) begin transaction
4762
+  (0.0ms) rollback transaction
4763
+  (0.0ms) begin transaction
4764
+  (0.0ms) rollback transaction
4765
+  (0.0ms) begin transaction
4766
+  (0.0ms) rollback transaction
4767
+  (0.0ms) begin transaction
4768
+  (0.1ms) rollback transaction
4769
+  (0.0ms) begin transaction
4770
+  (0.0ms) rollback transaction
4771
+  (0.0ms) begin transaction
4772
+  (0.0ms) rollback transaction
4773
+  (0.0ms) begin transaction
4774
+  (0.0ms) rollback transaction
4775
+  (0.2ms) begin transaction
4776
+  (0.1ms) rollback transaction
4777
+  (0.1ms) begin transaction
4778
+  (0.2ms) rollback transaction
4779
+  (0.1ms) begin transaction
4780
+  (0.0ms) rollback transaction
4781
+  (0.1ms) begin transaction
4782
+  (0.0ms) rollback transaction
4783
+  (0.0ms) begin transaction
4784
+  (0.0ms) rollback transaction
4785
+  (0.0ms) begin transaction
4786
+  (0.0ms) rollback transaction
4787
+  (0.0ms) begin transaction
4788
+  (0.1ms) rollback transaction
4789
+  (0.0ms) begin transaction
4790
+  (0.0ms) rollback transaction
4791
+  (0.0ms) begin transaction
4792
+  (0.1ms) rollback transaction
4793
+  (0.0ms) begin transaction
4794
+  (0.0ms) rollback transaction
4795
+  (0.0ms) begin transaction
4796
+  (0.0ms) rollback transaction
4797
+  (0.0ms) begin transaction
4798
+ WebValve Request Captured (1.7ms) dummy.dev GET /widgets [200]
4799
+  (0.1ms) rollback transaction
4800
+  (0.0ms) begin transaction
4801
+ WebValve Request Captured (0.3ms) dummy.dev GET /foos []
4802
+  (0.0ms) rollback transaction
4803
+  (0.3ms) begin transaction
4804
+  (0.0ms) rollback transaction
4805
+  (0.0ms) begin transaction
4806
+  (0.0ms) rollback transaction
4807
+  (0.0ms) begin transaction
4808
+  (0.0ms) rollback transaction
4809
+  (0.0ms) begin transaction
4810
+  (0.0ms) rollback transaction
4811
+  (0.0ms) begin transaction
4812
+  (0.0ms) rollback transaction
4813
+  (0.0ms) begin transaction
4814
+  (0.0ms) rollback transaction
4815
+  (0.0ms) begin transaction
4816
+  (0.1ms) rollback transaction
4817
+  (0.1ms) begin transaction
4818
+  (0.1ms) rollback transaction
4819
+  (0.1ms) begin transaction
4820
+  (0.0ms) rollback transaction
4821
+  (0.1ms) begin transaction
4822
+  (0.0ms) rollback transaction
4823
+  (0.0ms) begin transaction
4824
+  (0.0ms) rollback transaction
4825
+  (0.0ms) begin transaction
4826
+  (0.0ms) rollback transaction
4827
+  (0.0ms) begin transaction
4828
+  (0.0ms) rollback transaction
4829
+  (0.0ms) begin transaction
4830
+  (0.0ms) rollback transaction
4831
+  (0.2ms) begin transaction
4832
+  (0.1ms) rollback transaction
4833
+  (0.2ms) begin transaction
4834
+  (0.2ms) rollback transaction
4835
+  (0.1ms) begin transaction
4836
+  (0.0ms) rollback transaction
4837
+  (0.0ms) begin transaction
4838
+  (0.0ms) rollback transaction
4839
+  (0.0ms) begin transaction
4840
+  (0.0ms) rollback transaction
4841
+  (0.0ms) begin transaction
4842
+  (0.0ms) rollback transaction
4843
+  (0.0ms) begin transaction
4844
+  (0.0ms) rollback transaction
4845
+  (0.0ms) begin transaction
4846
+  (0.0ms) rollback transaction
4847
+  (0.0ms) begin transaction
4848
+  (0.0ms) rollback transaction
4849
+  (0.0ms) begin transaction
4850
+  (0.0ms) rollback transaction
4851
+  (0.0ms) begin transaction
4852
+ WebValve Request Captured (0.4ms) dummy.dev GET /foos []
4853
+  (0.0ms) rollback transaction
4854
+  (0.0ms) begin transaction
4855
+ WebValve Request Captured (1.9ms) dummy.dev GET /widgets [200]
4856
+  (0.0ms) rollback transaction
4857
+  (0.0ms) begin transaction
4858
+  (0.0ms) rollback transaction
4859
+  (0.0ms) begin transaction
4860
+  (0.0ms) rollback transaction
4861
+  (0.0ms) begin transaction
4862
+  (0.0ms) rollback transaction
4863
+  (0.0ms) begin transaction
4864
+  (0.0ms) rollback transaction
data/spec/examples.txt CHANGED
@@ -1,30 +1,32 @@
1
- example_id | status | run_time |
2
- ---------------------------------------------------- | ------ | --------------- |
3
- ./spec/webvalve/fake_service_config_spec.rb[1:1:1:1] | passed | 0.00065 seconds |
4
- ./spec/webvalve/fake_service_config_spec.rb[1:1:1:2] | passed | 0.0006 seconds |
5
- ./spec/webvalve/fake_service_config_spec.rb[1:1:2:1] | passed | 0.00064 seconds |
6
- ./spec/webvalve/fake_service_config_spec.rb[1:1:2:2] | passed | 0.00782 seconds |
7
- ./spec/webvalve/fake_service_config_spec.rb[1:1:2:3] | passed | 0.00093 seconds |
8
- ./spec/webvalve/fake_service_config_spec.rb[1:1:3:1] | passed | 0.00061 seconds |
9
- ./spec/webvalve/fake_service_config_spec.rb[1:1:3:2] | passed | 0.00062 seconds |
10
- ./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.00071 seconds |
11
- ./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.00066 seconds |
12
- ./spec/webvalve/fake_service_config_spec.rb[1:2:3] | passed | 0.00078 seconds |
13
- ./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.00172 seconds |
14
- ./spec/webvalve/fake_service_spec.rb[1:2:1] | passed | 0.01186 seconds |
15
- ./spec/webvalve/fake_service_spec.rb[1:2:2] | passed | 0.00753 seconds |
16
- ./spec/webvalve/manager_spec.rb[1:1] | passed | 0.00609 seconds |
17
- ./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.00372 seconds |
18
- ./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.00069 seconds |
19
- ./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.00063 seconds |
20
- ./spec/webvalve/manager_spec.rb[1:5:1] | passed | 0.00253 seconds |
21
- ./spec/webvalve/manager_spec.rb[1:5:2] | passed | 0.02012 seconds |
22
- ./spec/webvalve/manager_spec.rb[1:5:3] | passed | 0.00124 seconds |
23
- ./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.00132 seconds |
24
- ./spec/webvalve/manager_spec.rb[1:5:5:1] | passed | 0.00133 seconds |
25
- ./spec/webvalve/manager_spec.rb[1:5:5:2] | passed | 0.00238 seconds |
26
- ./spec/webvalve/manager_spec.rb[1:5:5:3] | passed | 0.00281 seconds |
27
- ./spec/webvalve_spec.rb[1:1] | passed | 0.00052 seconds |
28
- ./spec/webvalve_spec.rb[1:2] | passed | 0.0023 seconds |
29
- ./spec/webvalve_spec.rb[1:3] | passed | 0.00053 seconds |
30
- ./spec/webvalve_spec.rb[1:4] | passed | 0.00057 seconds |
1
+ example_id | status | run_time |
2
+ ------------------------------------------------------ | ------ | --------------- |
3
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:1:1] | passed | 0.00044 seconds |
4
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:1:2] | passed | 0.00052 seconds |
5
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:2:1] | passed | 0.00062 seconds |
6
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:2:2] | passed | 0.00076 seconds |
7
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:2:3] | passed | 0.00067 seconds |
8
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:3:1] | passed | 0.00245 seconds |
9
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:3:2] | passed | 0.00293 seconds |
10
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:3:3:1] | passed | 0.00076 seconds |
11
+ ./spec/webvalve/fake_service_config_spec.rb[1:1:3:3:2] | passed | 0.00102 seconds |
12
+ ./spec/webvalve/fake_service_config_spec.rb[1:2:1] | passed | 0.00077 seconds |
13
+ ./spec/webvalve/fake_service_config_spec.rb[1:2:2] | passed | 0.00061 seconds |
14
+ ./spec/webvalve/fake_service_config_spec.rb[1:2:3] | passed | 0.00068 seconds |
15
+ ./spec/webvalve/fake_service_spec.rb[1:1] | passed | 0.00057 seconds |
16
+ ./spec/webvalve/fake_service_spec.rb[1:2:1] | passed | 0.00966 seconds |
17
+ ./spec/webvalve/fake_service_spec.rb[1:2:2] | passed | 0.00503 seconds |
18
+ ./spec/webvalve/manager_spec.rb[1:1] | passed | 0.00265 seconds |
19
+ ./spec/webvalve/manager_spec.rb[1:2:1] | passed | 0.00151 seconds |
20
+ ./spec/webvalve/manager_spec.rb[1:3:1] | passed | 0.00056 seconds |
21
+ ./spec/webvalve/manager_spec.rb[1:4:1] | passed | 0.00113 seconds |
22
+ ./spec/webvalve/manager_spec.rb[1:5:1] | passed | 0.00094 seconds |
23
+ ./spec/webvalve/manager_spec.rb[1:5:2] | passed | 0.00135 seconds |
24
+ ./spec/webvalve/manager_spec.rb[1:5:3] | passed | 0.00728 seconds |
25
+ ./spec/webvalve/manager_spec.rb[1:5:4:1] | passed | 0.00125 seconds |
26
+ ./spec/webvalve/manager_spec.rb[1:5:5:1] | passed | 0.0013 seconds |
27
+ ./spec/webvalve/manager_spec.rb[1:5:5:2] | passed | 0.00184 seconds |
28
+ ./spec/webvalve/manager_spec.rb[1:5:5:3] | passed | 0.00318 seconds |
29
+ ./spec/webvalve_spec.rb[1:1] | passed | 0.00036 seconds |
30
+ ./spec/webvalve_spec.rb[1:2] | passed | 0.00036 seconds |
31
+ ./spec/webvalve_spec.rb[1:3] | passed | 0.00029 seconds |
32
+ ./spec/webvalve_spec.rb[1:4] | passed | 0.00146 seconds |
@@ -106,6 +106,28 @@ RSpec.describe WebValve::FakeServiceConfig do
106
106
  expect(subject.should_intercept?).to eq false
107
107
  end
108
108
  end
109
+
110
+ context 'when WEBVALVE_ENABLED is true' do
111
+ around do |ex|
112
+ with_env 'WEBVALVE_ENABLED' => '1' do
113
+ ex.run
114
+ end
115
+ end
116
+
117
+ it 'returns true' do
118
+ expect(subject.should_intercept?).to eq true
119
+ end
120
+
121
+ it 'respects DUMMY_ENABLED flag' do
122
+ with_env 'DUMMY_ENABLED' => '1' do
123
+ expect(subject.should_intercept?).to eq false
124
+ end
125
+
126
+ with_env 'DUMMY_ENABLED' => '0' do
127
+ expect(subject.should_intercept?).to eq true
128
+ end
129
+ end
130
+ end
109
131
  end
110
132
  end
111
133
 
@@ -11,7 +11,7 @@ RSpec.describe WebValve::Manager do
11
11
  describe '#whitelist_url' do
12
12
  it 'raises on duplicates' do
13
13
  subject.whitelist_url "foo"
14
- expect { subject.whitelist_url "foo" }.to raise_error /already registered/
14
+ expect { subject.whitelist_url "foo" }.to raise_error(/already registered/)
15
15
  expect(subject.whitelisted_urls.count).to eq 1
16
16
  expect(subject.whitelisted_urls).to contain_exactly(/foo/)
17
17
  end
@@ -22,7 +22,7 @@ RSpec.describe WebValve::Manager do
22
22
  fake = class_double(WebValve::FakeService)
23
23
 
24
24
  subject.register fake
25
- expect { subject.register fake }.to raise_error /already registered/
25
+ expect { subject.register fake }.to raise_error(/already registered/)
26
26
  expect(subject.fake_service_configs.count).to eq 1
27
27
  expect(subject.fake_service_configs.first.service).to eq fake
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webvalve
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
  - Sam Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-04 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,30 +28,42 @@ dependencies:
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '1.4'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
- version: '2.0'
43
+ version: '1.4'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: sinatra-contrib
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
- version: '2.0'
53
+ version: '1.4'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '3'
48
57
  type: :runtime
49
58
  prerelease: false
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
- - - "~>"
61
+ - - ">="
53
62
  - !ruby/object:Gem::Version
54
- version: '2.0'
63
+ version: '1.4'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '3'
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: webmock
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +78,20 @@ dependencies:
66
78
  - - "~>"
67
79
  - !ruby/object:Gem::Version
68
80
  version: '2.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: appraisal
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 2.2.0
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: 2.2.0
69
95
  - !ruby/object:Gem::Dependency
70
96
  name: rspec-rails
71
97
  requirement: !ruby/object:Gem::Requirement
@@ -198,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
224
  version: '0'
199
225
  requirements: []
200
226
  rubyforge_project:
201
- rubygems_version: 2.5.1
227
+ rubygems_version: 2.6.13
202
228
  signing_key:
203
229
  specification_version: 4
204
230
  summary: A library for faking http service integrations in development and test