rspec-requestable-examples 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,15 +31,11 @@ module RSpec
31
31
  end
32
32
 
33
33
  def requestable_describe(description, options={}, &blk)
34
- requestable_describes << description
35
- describe description, &blk if requested_examples.include?(options[:as] || description)
34
+ label = options[:as] || description
35
+ requestable_examples << label
36
+ describe description, &blk if requested_examples.run?(label)
36
37
  end
37
38
  alias_method :requestable_context, :requestable_describe
38
-
39
- def requestable_describes
40
- @requestable_describes ||= []
41
- end
42
- alias_method :requestable_contexts, :requestable_describes
43
39
  end
44
40
 
45
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-requestable-examples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: