Sha256: 4960e2aa104f358619bebbd96ddfef543dd6473c720a416edce35d0fdd9ea68e
Contents?: true
Size: 327 Bytes
Versions: 4
Compression:
Stored size: 327 Bytes
Contents
require "test_helper" class ReadonlyTest < MiniTest::Spec class SongForm < TestForm property :artist property :title, writeable: false # TODO: what to do with virtual values? end let(:form) { SongForm.new(OpenStruct.new) } it { refute form.readonly?(:artist) } it { assert form.readonly?(:title) } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reform-2.6.2 | test/read_only_test.rb |
reform-2.6.1 | test/read_only_test.rb |
reform-2.6.0 | test/read_only_test.rb |
reform-2.5.0 | test/read_only_test.rb |