rspec-requestable-examples 0.1.4 → 0.1.5

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.
@@ -25,8 +25,9 @@ module RSpec
25
25
  end
26
26
 
27
27
  def requestable_example(description, options={}, &blk)
28
- examples_that_can_be_requested << description
29
- it description, &blk if requested_examples.run?(options[:as] || description)
28
+ label = options[:as] || description
29
+ examples_that_can_be_requested << label
30
+ it description, &blk if requested_examples.run?(label)
30
31
  end
31
32
  alias_method :requestable_it, :requestable_example
32
33
 
@@ -36,7 +37,7 @@ module RSpec
36
37
 
37
38
  def requestable_describe(description, options={}, &blk)
38
39
  label = options[:as] || description
39
- requestable_examples << label
40
+ examples_that_can_be_requested << label
40
41
  describe description, &blk if requested_examples.run?(label)
41
42
  end
42
43
  alias_method :requestable_context, :requestable_describe
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rspec-requestable-examples
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.4
5
+ version: 0.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Zach Dennis
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-05 00:00:00 Z
13
+ date: 2012-01-12 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: See home page