class TrafficLightCautionTest
Public Instance Methods
setup()
click to toggle source
# File test/functional/state_machine_test.rb, line 1034 def setup @light = TrafficLight.new @light.state = 'caution' end
test_should_use_caution_capture_violations()
click to toggle source
# File test/functional/state_machine_test.rb, line 1043 def test_should_use_caution_capture_violations assert_equal true, @light.capture_violations? end
test_should_use_caution_color()
click to toggle source
# File test/functional/state_machine_test.rb, line 1039 def test_should_use_caution_color assert_equal 'yellow', @light.color end