class TrafficLightStopTest
Public Instance Methods
setup()
click to toggle source
# File test/functional/state_machine_test.rb, line 995 def setup @light = TrafficLight.new @light.state = 'stop' end
test_should_pass_arguments_through()
click to toggle source
# File test/functional/state_machine_test.rb, line 1004 def test_should_pass_arguments_through assert_equal 'RED', @light.color(:upcase!) end
test_should_pass_block_through()
click to toggle source
# File test/functional/state_machine_test.rb, line 1008 def test_should_pass_block_through color = @light.color {|value| value.upcase!} assert_equal 'RED', color end
test_should_use_stop_capture_violations()
click to toggle source
# File test/functional/state_machine_test.rb, line 1013 def test_should_use_stop_capture_violations assert_equal true, @light.capture_violations? end
test_should_use_stop_color()
click to toggle source
# File test/functional/state_machine_test.rb, line 1000 def test_should_use_stop_color assert_equal 'red', @light.color end