rspec-steps 1.0.2 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95d277a94cd1f7b449ed8b355603fc11ef6684c4
4
- data.tar.gz: eaaa7e65109e346b07ed3266ff9973f268e30df2
3
+ metadata.gz: 822a5b6c83f2e379b1a224cf1ae96d64adb86855
4
+ data.tar.gz: a76a48c57274dc299fa98e6bb14ebf9812bea493
5
5
  SHA512:
6
- metadata.gz: 2becd4f64acfbcb7870ffbd5a10d1f5ea2c9bbdd2db356f20ae62e4c7839c9ecd3c8cb9234dfca64e844ba1fb8cec769afc8efba28b909603045aef28cb88dd9
7
- data.tar.gz: 825c04058fb774bb90723b5a2586a5c44e177d977e21ad6d92ba60511481cbcf47195f065a39a0e4a25045a2b9bee90ad4d8021c0c42a564f71d98dbefbaae2a
6
+ metadata.gz: b008e3e9eaa5b307aa3ea80cc08777a08dbced69dc907be4feaea5d097eda4a6087a2a6d8788f9505a607f06a2a426eaa839807f0497bd7491c4bc4693e99f0e
7
+ data.tar.gz: 4f2012a46c02c88a7b659a58083ee91c293ab340f214b55bf6ccb7b3a54f569e1982a15a9e28616c7d6e7d3cab61b36ec884198494a6b35f5a6cd460eaea3ea6
@@ -3,8 +3,16 @@ require 'rspec-steps/stepwise'
3
3
  require 'rspec/core/shared_example_group'
4
4
 
5
5
  module RSpec::Core::SharedExampleGroup
6
- alias shared_steps shared_examples_for
6
+ alias shared_steps shared_examples
7
7
  if respond_to? :share_as
8
8
  alias steps_shared_as share_as
9
9
  end
10
10
  end
11
+
12
+ [self, RSpec].each do |thing|
13
+ if thing.respond_to? :shared_examples and not thing.respond_to? :shared_steps
14
+ thing.instance_exec do
15
+ alias shared_steps shared_examples
16
+ end
17
+ end
18
+ end
@@ -41,7 +41,12 @@ module RSpecStepwise
41
41
  example.extend StepExample
42
42
  unless success
43
43
  example.metadata[:pending] = true
44
- example.metadata[:execution_result][:pending_message] = "Previous step failed"
44
+ exec_result = example.metadata[:execution_result]
45
+ if exec_result.respond_to? :pending_message=
46
+ exec_result.pending_message = "Previous step failed"
47
+ else
48
+ exec_result[:pending_message] = "Previous step failed"
49
+ end
45
50
  end
46
51
  succeeded = with_indelible_ivars do
47
52
  example.run(self, reporter)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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: 2014-11-30 00:00:00.000000000 Z
12
+ date: 2014-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: corundum
@@ -330,7 +330,7 @@ rdoc_options:
330
330
  - --main
331
331
  - doc/README
332
332
  - --title
333
- - rspec-steps-1.0.2 RDoc
333
+ - rspec-steps-1.0.3 RDoc
334
334
  require_paths:
335
335
  - lib/
336
336
  required_ruby_version: !ruby/object:Gem::Requirement