rspec-requestable-examples 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rspec/requestable-examples.rb +4 -3
- metadata +2 -2
@@ -25,8 +25,9 @@ module RSpec
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def requestable_example(description, options={}, &blk)
|
28
|
-
|
29
|
-
|
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
|
-
|
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.
|
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-
|
13
|
+
date: 2012-01-12 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: See home page
|