Class: RSpec::RequestableExamples::RequestedExamples
- Inherits:
-
Array
- Object
- Array
- RSpec::RequestableExamples::RequestedExamples
- Defined in:
- lib/rspec/requestable-examples.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ RequestedExamples
constructor
A new instance of RequestedExamples.
- #run?(example) ⇒ Boolean
Constructor Details
#initialize(options) ⇒ RequestedExamples
Returns a new instance of RequestedExamples.
4 5 6 7 |
# File 'lib/rspec/requestable-examples.rb', line 4 def initialize() ||= {} replace [:examples] || [] end |
Instance Method Details
#run?(example) ⇒ Boolean
9 10 11 12 |
# File 'lib/rspec/requestable-examples.rb', line 9 def run?(example) return true if empty? || include?(example) false end |