Sha256: c26ad8c340bde68f455f27a7f9a01f62cd9c1077fdfd8c5ffcdbffbcf45ccf7f
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
require "test_helper" class DefaultTest < Minitest::Spec Song = Struct.new(:title, :album, :composer) Album = Struct.new(:name, :songs, :artist) Artist = Struct.new(:name) class AlbumForm < TestForm property :name, default: "Wrong" collection :songs do property :title, default: "It's Catching Up" end end it do form = AlbumForm.new(Album.new(nil, [Song.new])) form.name.must_equal "Wrong" form.songs[0].title.must_equal "It's Catching Up" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reform-2.3.2 | test/default_test.rb |
reform-2.3.1 | test/default_test.rb |
reform-2.3.0.rc2 | test/default_test.rb |