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.
- 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
|