Sha256: 1f64d946cf3635af3d8fe3167019bd557a018c96dcb3a836679525d1ef4fbf62
Contents?: true
Size: 919 Bytes
Versions: 4
Compression:
Stored size: 919 Bytes
Contents
class TestFormotionScreen < PM::FormotionScreen attr_accessor :submitted_form title "Formotion Test" def table_data @table_data ||= { sections: [{ title: "Currency", key: :currency, select_one: true, rows: [{ title: "EUR", key: :eur, value: true, type: :check }, { title: "USD", key: :usd, type: :check }] }] } end def on_submit(form) self.submitted_form = form end def test_update_table_data @table_data = { sections: [{ title: "Updated Data", key: :currency, select_one: true, rows: [{ title: "EUR", key: :eur, value: true, type: :check }, { title: "USD", key: :usd, type: :check }] }] } update_table_data end end
Version data entries
4 entries across 4 versions & 2 rubygems