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.



553
554
555
# File 'lib/test/spec.rb', line 553

def initialize(name)
  @name = name
end

Instance Method Details

#long_displayObject



565
566
567
# File 'lib/test/spec.rb', line 565

def long_display
  @name + " is empty"
end

#short_displayObject



561
562
563
# File 'lib/test/spec.rb', line 561

def short_display
  @name
end

#single_character_displayObject



557
558
559
# File 'lib/test/spec.rb', line 557

def single_character_display
  ""
end