Class: Mutiny::Integration::RSpec::TestSet
- Inherits:
-
Tests::TestSet
- Object
- Tests::TestSet
- Mutiny::Integration::RSpec::TestSet
- Defined in:
- lib/mutiny/integration/rspec/test_set.rb
Instance Method Summary collapse
- #examples ⇒ Object
-
#generalise ⇒ Object
Converts to a Mutiny::Tests::TestSet, which is independent of any specific testing framework.
- #subset_for_examples(examples) ⇒ Object
Methods inherited from Tests::TestSet
empty, #eql?, #for, #for_all, #initialize, #locations, #subset, #take
Constructor Details
This class inherits a constructor from Mutiny::Tests::TestSet
Instance Method Details
#examples ⇒ Object
7 8 9 |
# File 'lib/mutiny/integration/rspec/test_set.rb', line 7 def examples @tests.map(&:example) end |
#generalise ⇒ Object
Converts to a Mutiny::Tests::TestSet, which is independent of any specific testing framework
17 18 19 |
# File 'lib/mutiny/integration/rspec/test_set.rb', line 17 def generalise Mutiny::Tests::TestSet.new(tests.map(&:generalise)) end |
#subset_for_examples(examples) ⇒ Object
11 12 13 |
# File 'lib/mutiny/integration/rspec/test_set.rb', line 11 def subset_for_examples(examples) subset { |test| examples.include?(test.example) } end |