Class: Test::Unit::UI::Console::ColorizedReadableDiffer

Inherits:
Diff::ReadableDiffer show all
Defined in:
lib/test/unit/ui/console/testrunner.rb

Instance Method Summary (collapse)

Methods inherited from Diff::ReadableDiffer

#diff

Constructor Details

- (ColorizedReadableDiffer) initialize(from, to, runner)

Returns a new instance of ColorizedReadableDiffer



481
482
483
484
# File 'lib/test/unit/ui/console/testrunner.rb', line 481

def initialize(from, to, runner)
  @runner = runner
  super(from, to)
end

Instance Method Details

- (Boolean) need_diff?(options = {})

Returns:

  • (Boolean)


486
487
488
489
490
491
# File 'lib/test/unit/ui/console/testrunner.rb', line 486

def need_diff?(options={})
  operations.each do |tag,|
    return true if [:replace, :equal].include?(tag)
  end
  false
end