fwtoolkit 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ Around('~@slow') do |scenario, block|
2
+ timeout_seconds = 300
3
+ begin
4
+ Timeout.timeout(timeout_seconds) do
5
+ block.call
6
+ end
7
+ rescue Timeout::Error
8
+ puts "Your test was killed after #{timeout_seconds}"
9
+ end
10
+ end
11
+
12
+ Around('@slow') do |scenario, block|
13
+ timeout_seconds = 1200
14
+ begin
15
+ Timeout.timeout(timeout_seconds) do
16
+ block.call
17
+ end
18
+ rescue Timeout::Error
19
+ puts "Your slow test was killed after #{timeout_seconds}"
20
+ end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -13,6 +13,7 @@ AfterConfiguration do
13
13
  require 'fwtoolkit/test/pickle_steps'
14
14
  require 'fwtoolkit/test/ui_steps'
15
15
  require 'fwtoolkit/test/model_helper'
16
+ require 'fwtoolkit/test/timeout_helper'
16
17
  end
17
18
 
18
19
  After do |scenario|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fwtoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -289,6 +289,7 @@ files:
289
289
  - lib/fwtoolkit/test/model_helper.rb
290
290
  - lib/fwtoolkit/test/network_steps.rb
291
291
  - lib/fwtoolkit/test/pickle_steps.rb
292
+ - lib/fwtoolkit/test/timeout_helper.rb
292
293
  - lib/fwtoolkit/test/ui_helper.rb
293
294
  - lib/fwtoolkit/test/ui_steps.rb
294
295
  - lib/fwtoolkit/version.rb
@@ -326,7 +327,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
327
  version: '0'
327
328
  segments:
328
329
  - 0
329
- hash: 4188321226862509111
330
+ hash: -3970918280971093081
330
331
  required_rubygems_version: !ruby/object:Gem::Requirement
331
332
  none: false
332
333
  requirements:
@@ -335,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
336
  version: '0'
336
337
  segments:
337
338
  - 0
338
- hash: 4188321226862509111
339
+ hash: -3970918280971093081
339
340
  requirements: []
340
341
  rubyforge_project:
341
342
  rubygems_version: 1.8.24