class TestNavigationController::Appeared
Public Instance Methods
setup()
click to toggle source
# File test/navigation_controller_test.rb, line 38 def setup @subject = NavigationController.new(ViewController.new) @subject.begin_appearance_transition(true) @subject.end_appearance_transition() end
test_adding_child_then_child_appears()
click to toggle source
# File test/navigation_controller_test.rb, line 59 def test_adding_child_then_child_appears child = ViewController.new @subject.push_view_controller(child) assert child.appeared? end
test_when_appearing_nothing_happens()
click to toggle source
# File test/navigation_controller_test.rb, line 51 def test_when_appearing_nothing_happens @subject.reset! @subject.begin_appearance_transition(true) @subject.end_appearance_transition() refute @subject.appeared? refute @subject.disappeared? end
test_when_disappearing_it_disappears()
click to toggle source
# File test/navigation_controller_test.rb, line 44 def test_when_disappearing_it_disappears refute @subject.disappeared? @subject.begin_appearance_transition(false) @subject.end_appearance_transition() assert @subject.disappeared? end