class TestViewController::Constructed

Public Instance Methods

setup() click to toggle source
# File test/view_controller_test.rb, line 10
def setup
  @subject = ViewController.new
end
test_add_child_view_controller_reparents_child() click to toggle source
# File test/view_controller_test.rb, line 20
def test_add_child_view_controller_reparents_child
  child = ViewController.new
  assert_nil child.parent
  @subject.add_child_view_controller(child)
  assert_equal @subject, child.parent
end
test_appearing_it_appears() click to toggle source
# File test/view_controller_test.rb, line 14
def test_appearing_it_appears
  @subject.begin_appearance_transition(true)
  @subject.end_appearance_transition()
  assert @subject.appeared?
end