Sha256: 321216a9cebe9acb12c4327ecaef35c1e1054961d3cc09313cba47f31c140f90
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
require 'test_helper' class FormOptionTest < MiniTest::Spec Song = Struct.new(:title) Album = Struct.new(:song) class SongForm < Reform::Form property :title validates_presence_of :title end class AlbumForm < Reform::Form property :song, form: SongForm end it do AlbumForm.new(Album.new(Song.new("When It Comes To You"))).song.title.must_equal "When It Comes To You" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reform-2.0.0.rc1 | test/form_option_test.rb |
reform-2.0.0.beta2 | test/form_option_test.rb |
reform-2.0.0.beta1 | test/form_option_test.rb |