Sha256: c7ff037554e9125955c2a7b1859def2fbc3ece0c4d8836b68d818c5e0f4f9418
Contents?: true
Size: 506 Bytes
Versions: 10
Compression:
Stored size: 506 Bytes
Contents
require 'test_helper' require 'test_helper' require 'reform/twin' class TwinTest < MiniTest::Spec class SongForm < Reform::Form class Twin < Disposable::Twin property :title option :is_online # TODO: this should make it read-only in reform! end include Reform::Twin twin Twin end let (:model) { OpenStruct.new(title: "Kenny") } let (:form) { SongForm.new(model, is_online: true) } it { form.title.must_equal "Kenny" } it { form.is_online.must_equal true } end
Version data entries
10 entries across 10 versions & 1 rubygems