class Mutiny::Integration::RSpec

This code originally based on Markus Schirp’s implementation of Mutant::Integration::Rspec

https://github.com/mbj/mutant/blob/master/lib/mutant/integration/rspec.rb

Public Instance Methods

run(test_set, hooks: [], **options) click to toggle source
# File lib/mutiny/integration/rspec.rb, line 15
def run(test_set, hooks: [], **options)
  rspec_hooks = hooks.map { |hook| RSpec::Hook.new(hook) }
  Runner.new(test_set, context(options), rspec_hooks).call
end
tests(options = {}) click to toggle source
# File lib/mutiny/integration/rspec.rb, line 11
def tests(options = {})
  Parser.new(context(options)).call
end

Private Instance Methods

context(options = {}) click to toggle source
# File lib/mutiny/integration/rspec.rb, line 22
def context(options = {})
  Context.new(options)
end