Sha256: 94ff04ab2efd3bb779aae99549a58d4d0e544874e99ec127f7d4724fefa7868a

Contents?: true

Size: 374 Bytes

Versions: 12

Compression:

Stored size: 374 Bytes

Contents

require 'test_helper'

class SimpleFormTest < ActiveSupport::TestCase
  test 'setup block yields self' do
    SimpleForm.setup do |config|
      assert_equal SimpleForm, config
    end
  end

  test 'setup block configure Simple Form' do
    SimpleForm.setup do |config|
      assert_equal SimpleForm, config
    end

    assert_equal true, SimpleForm.configured?
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
simple_form-3.5.0 test/simple_form_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/test/simple_form_test.rb
simple_form-3.4.0 test/simple_form_test.rb
simple_form-3.3.1 test/simple_form_test.rb
simple_form-3.3.0 test/simple_form_test.rb
simple_form-3.2.1 test/simple_form_test.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/test/simple_form_test.rb
simple_form-3.2.0 test/simple_form_test.rb
simple_form-3.1.1 test/simple_form_test.rb
simple_form-3.1.0 test/simple_form_test.rb
simple_form-3.1.0.rc2 test/simple_form_test.rb
simple_form-3.1.0.rc1 test/simple_form_test.rb