rspec-requestable-examples 0.1.1 → 0.1.2
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.
- data/lib/rspec/requestable-examples.rb +3 -7
- metadata +1 -1
@@ -31,15 +31,11 @@ module RSpec
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def requestable_describe(description, options={}, &blk)
|
34
|
-
|
35
|
-
|
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
|