Sha256: 9016a574d421296e0f25914d9f9a716ec7341c0dcda31cd1578694a7e7296c69
Contents?: true
Size: 759 Bytes
Versions: 16
Compression:
Stored size: 759 Bytes
Contents
describe "FormController/SubformRow" do tests Formotion::FormController # By default, `tests` uses @controller.init # this isn't ideal for our case, so override. def controller row_settings = { title: "Goto", type: :subform, subform: { title: 'Subform', sections: [{ rows: [{ title: 'Mordor', type: :static, }] }] } } @form ||= Formotion::Form.new( sections: [{ rows:[row_settings] }]) @controller ||= Formotion::FormController.alloc.initWithForm(@form) end it "should goto subform when tapped" do tap("Goto") controller.modalViewController.should != nil window.viewByName('Mordor').should != nil end end
Version data entries
16 entries across 16 versions & 1 rubygems