Sha256: 2d1ad5a90e4276fe6c4481148ee0ad011189bf5d1fa1c116fb375fcfefec60c7

Contents?: true

Size: 407 Bytes

Versions: 17

Compression:

Stored size: 407 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

17 entries across 17 versions & 1 rubygems

Version Path
active_scaffold-3.4.17 test/config/subform_test.rb
active_scaffold-3.4.16 test/config/subform_test.rb
active_scaffold-3.4.14 test/config/subform_test.rb
active_scaffold-3.4.13 test/config/subform_test.rb
active_scaffold-3.4.12 test/config/subform_test.rb
active_scaffold-3.4.11 test/config/subform_test.rb
active_scaffold-3.4.10 test/config/subform_test.rb
active_scaffold-3.4.9 test/config/subform_test.rb
active_scaffold-3.4.8 test/config/subform_test.rb
active_scaffold-3.4.7 test/config/subform_test.rb
active_scaffold-3.4.5 test/config/subform_test.rb
active_scaffold-3.4.4 test/config/subform_test.rb
active_scaffold-3.4.3 test/config/subform_test.rb
active_scaffold-3.4.2 test/config/subform_test.rb
active_scaffold-3.4.1 test/config/subform_test.rb
active_scaffold-3.4.0.1 test/config/subform_test.rb
active_scaffold-3.4.0 test/config/subform_test.rb