Class: Spackle::Spec::BaseFormatter

Inherits:
Spec::Runner::Formatter::BaseFormatter
  • Object
show all
Defined in:
lib/spackle/spec/base_formatter.rb

Direct Known Subclasses

SpackleFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, output) ⇒ BaseFormatter

Returns a new instance of BaseFormatter.



11
12
13
14
15
16
# File 'lib/spackle/spec/base_formatter.rb', line 11

def initialize(options, output)
  # we ignore output, for now
  Spackle.init
  @options = options
  self.errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



9
10
11
# File 'lib/spackle/spec/base_formatter.rb', line 9

def errors
  @errors
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/spackle/spec/base_formatter.rb', line 8

def options
  @options
end

#outputObject (readonly)

Returns the value of attribute output.



8
9
10
# File 'lib/spackle/spec/base_formatter.rb', line 8

def output
  @output
end

Instance Method Details

#closeObject



18
19
20
# File 'lib/spackle/spec/base_formatter.rb', line 18

def close      
  Spackle.test_finished errors
end