class Shaf::Command::Test::Runner

Attributes

method_name[R]
runnable[R]

Public Class Methods

new(runnable, method_name = nil) click to toggle source
# File lib/shaf/command/test/runner.rb, line 8
def initialize(runnable, method_name = nil)
  @runnable = runnable
  @method_name = method_name
end

Public Instance Methods

call(reporter) click to toggle source
# File lib/shaf/command/test/runner.rb, line 13
def call(reporter)
  runnable.run(reporter, options)
end
options() click to toggle source
# File lib/shaf/command/test/runner.rb, line 17
def options
  return {} unless method_name

  {filter: method_name}
end