cukerail 0.2.0 → 0.2.1

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: d0b379455c3a2bfece21f51c89c286f5a27e2814
4
- data.tar.gz: 7690535fd04963b629039dde58c9ba47961cc7a8
3
+ metadata.gz: 8a2a5ca3de4c40fb8d4836055d6f55ab3c7fa894
4
+ data.tar.gz: edc4e517f164630e324853ab41d75aae8652cb92
5
5
  SHA512:
6
- metadata.gz: 96891be91b5458858837a4d5211e8445f12a9a926b9e3821a0ca73a3dbf611cb99048cf8d0647f7fd97d3a2b9fcb8aad3715158ac428e3ef639274a2c6ccc80c
7
- data.tar.gz: bfe3178523c78c2e9bb5f530f6dc9d37ecc9a7249f7027b3450688a46672482f26ae21533cdaabc11371a4753e95eaa1c14df2242d12aa80603b91d98a3d328e
6
+ metadata.gz: 613ad954be0a3c39c8677a1f7b6f65e441cddbff7492b0fcf7511dce210a6434d149a11e1f51714d28ee8b0c2b02937025f72b887035d303419b2ffb4afafa7e
7
+ data.tar.gz: 8c62d4d28ec0dcf64116ff580676caea9f1beb9fc6b3ba59219b1d4825a52daed874901f6a0233dfbf65386b495825a54afe7bb0fee924d31f3df23b3d720cea
@@ -1,3 +1,3 @@
1
1
  module Cukerail
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/cukerail.rb CHANGED
@@ -132,6 +132,9 @@ module Cukerail
132
132
  if @failed_step[:step].source.last.is_a?(Cucumber::Hooks::BeforeHook)
133
133
  failed_step = 'failed in the before hook'
134
134
  location = 'before hook'
135
+ elsif @failed_step[:step].source.last.is_a?(Cucumber::Hooks::AfterHook)
136
+ failed_step = 'failed in the after hook'
137
+ location = 'after hook'
135
138
  else
136
139
  failed_step = "#{@failed_step[:step].source.last.keyword}#{@failed_step[:step].source.last.name}"
137
140
  location=@failed_step[:step].source.last.file_colon_line
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cukerail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Small
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler