Class: Test::Spec::Disabled

Inherits:
Unit::Failure
  • Object
show all
Defined in:
lib/test/spec.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Disabled

Returns a new instance of Disabled.



535
536
537
# File 'lib/test/spec.rb', line 535

def initialize(name)
  @name = name
end

Instance Method Details

#long_displayObject



547
548
549
# File 'lib/test/spec.rb', line 547

def long_display
  @name + " is disabled"
end

#short_displayObject



543
544
545
# File 'lib/test/spec.rb', line 543

def short_display
  @name
end

#single_character_displayObject



539
540
541
# File 'lib/test/spec.rb', line 539

def single_character_display
  "D"
end