rspec-flaky-test 0.1.0 → 0.2.0

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: 3e230c306ea45b47357da403cecfca2632c9efd5
4
- data.tar.gz: 4c604138571d2950e25fbca23387b23f5af90ec8
3
+ metadata.gz: bbdf2f030d0950885d5c97652aafb240114533af
4
+ data.tar.gz: 722b19c878f6157d13f708bb9855c643a295164b
5
5
  SHA512:
6
- metadata.gz: 17f4e331e758c666a665183f7d6202c7702432d75a131cd1df4f8e59ee9b7b5d3a7d3fb574c3db4cd3ddd79d8ba9cc99d41480dca4e1d4e3aba42dcd687481b9
7
- data.tar.gz: f15d413c9742b73498aafe677460232a87bc50164d494eb726c8932973054038e2248eefbfd3d8f65ea14e5a0cf480896ec2f61bc245e4bb237f0c758a3766d2
6
+ metadata.gz: 2f20c1a9e66ee1a5051445326d83a252a7c4142fce293a05e3dbf916c6899d8cae9038d1dc07eaea703664ac8fbf807c977421aad8f1e9a3d94d5441c61a7b0d
7
+ data.tar.gz: b77dafd2a8f7d4af61c7dfced73f986f07adf41c5a63602140164768dcd7245aa83091f297670feda3bcdbebb06be5055f99af97e8292024b3355b97f9b54190
@@ -8,6 +8,8 @@ module Rspec
8
8
  config.add_setting :flaky_tries, default: 3
9
9
 
10
10
  config.around(:example) do |example|
11
+ next example.run unless example.metadata[:flaky]
12
+
11
13
  tries = RSpec.configuration.flaky_tries
12
14
  current_example = RSpec.current_example
13
15
 
@@ -1,7 +1,7 @@
1
1
  module Rspec
2
2
  module Flaky
3
3
  module Test
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-flaky-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Medeiros
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec