class TestNavigationController::WithChildrenAndAppeared
Public Instance Methods
setup()
click to toggle source
# File test/navigation_controller_test.rb, line 133 def setup @subject = NavigationController.new(ViewController.new) @children = [ViewController.new, ViewController.new, ViewController.new] @children.each { |child| @subject.push_view_controller(child) } @subject.begin_appearance_transition(true) @subject.end_appearance_transition() end
test_pop_to_root_hides_last_child()
click to toggle source
# File test/navigation_controller_test.rb, line 141 def test_pop_to_root_hides_last_child @subject.pop_to_root_view_controller() assert @children.last.disappeared? end
test_pop_to_root_shows_root_view_controller()
click to toggle source
# File test/navigation_controller_test.rb, line 146 def test_pop_to_root_shows_root_view_controller @subject.pop_to_root_view_controller() assert @subject.root_view_controller.appeared? end