Class: Mutiny::Integration::RSpec::TestSet

Inherits:
Tests::TestSet show all
Defined in:
lib/mutiny/integration/rspec/test_set.rb

Instance Method Summary collapse

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

#examplesObject



7
8
9
# File 'lib/mutiny/integration/rspec/test_set.rb', line 7

def examples
  @tests.map(&:example)
end

#generaliseObject

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