Sha256: bc3bbdadab9ebd7b8fd9766d1bcaf669695b3db30d7df0f03c8789b194d36080

Contents?: true

Size: 403 Bytes

Versions: 58

Compression:

Stored size: 403 Bytes

Contents

require 'test_helper'

module Config
  class SubformTest < MiniTest::Test
    def setup
      @config = ActiveScaffold::Config::Core.new :model_stub
    end

    def test_defaults
      assert_equal :horizontal, @config.subform.layout
    end

    def test_setting_layout
      layout = :vertical
      @config.subform.layout = layout
      assert_equal layout, @config.subform.layout
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
active_scaffold-3.6.20 test/config/subform_test.rb
active_scaffold-3.6.19 test/config/subform_test.rb
active_scaffold-3.6.17 test/config/subform_test.rb
active_scaffold-3.6.15 test/config/subform_test.rb
active_scaffold-3.6.14 test/config/subform_test.rb
active_scaffold-3.6.13 test/config/subform_test.rb
active_scaffold-3.6.12 test/config/subform_test.rb
active_scaffold-3.6.11.1 test/config/subform_test.rb
active_scaffold-3.6.11 test/config/subform_test.rb
active_scaffold-3.6.10 test/config/subform_test.rb
active_scaffold-3.6.9 test/config/subform_test.rb
active_scaffold-3.6.8 test/config/subform_test.rb
active_scaffold-3.6.6 test/config/subform_test.rb
active_scaffold-3.6.5 test/config/subform_test.rb
active_scaffold-3.6.4.1 test/config/subform_test.rb
active_scaffold-3.6.4 test/config/subform_test.rb
active_scaffold-3.6.3 test/config/subform_test.rb
active_scaffold-3.6.2 test/config/subform_test.rb
active_scaffold-3.6.1 test/config/subform_test.rb
active_scaffold-3.6.0 test/config/subform_test.rb