class TestNavigationController::Constructed
Public Instance Methods
setup()
click to toggle source
# File test/navigation_controller_test.rb, line 11 def setup @subject = NavigationController.new(ViewController.new) end
test_adding_child_updates_top_view_controller()
click to toggle source
# File test/navigation_controller_test.rb, line 22 def test_adding_child_updates_top_view_controller child = ViewController.new @subject.push_view_controller(child) assert_equal child, @subject.top_view_controller end
test_appearing_it_appears()
click to toggle source
# File test/navigation_controller_test.rb, line 15 def test_appearing_it_appears refute @subject.appeared? @subject.begin_appearance_transition(true) @subject.end_appearance_transition() assert @subject.appeared? end
test_pop_view_controller_throws()
click to toggle source
# File test/navigation_controller_test.rb, line 28 def test_pop_view_controller_throws assert_raises { @subject.pop_view_controller() } end