Class: TestEnvironment

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/environment.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



45
46
47
# File 'lib/environment.rb', line 45

def setup
  @env = Environment.new(1, "AHaSon")
end

#test_label_setObject



49
50
51
# File 'lib/environment.rb', line 49

def test_label_set
  assert_equal(%w[0A 1H 2a 3S 4o 5n].to_set, @env.label_set)
end

#test_to_sObject



53
54
55
# File 'lib/environment.rb', line 53

def test_to_s
  assert_equal("1-AHaSon", @env.to_s)
end