Class: Test::Spec::Empty

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Empty

Returns a new instance of Empty.



551
552
553
# File 'lib/test/spec.rb', line 551

def initialize(name)
  @name = name
end

Instance Method Details

#long_displayObject



563
564
565
# File 'lib/test/spec.rb', line 563

def long_display
  @name + " is empty"
end

#short_displayObject



559
560
561
# File 'lib/test/spec.rb', line 559

def short_display
  @name
end

#single_character_displayObject



555
556
557
# File 'lib/test/spec.rb', line 555

def single_character_display
  ""
end