Sha256: 04b1406e2a5c45b4c8ce036e007ede57a99d8b05fd9484514fb84b1eafa4ad22

Contents?: true

Size: 770 Bytes

Versions: 43

Compression:

Stored size: 770 Bytes

Contents

require 'test_helper'
require 'ostruct'
class CountrySelectTest < ActiveSupport::TestCase

  def resource_assigns
    {example_engine: ExampleEngine::MockRouteProxy.new}
  end

  def helpers
    view = mock_action_view
    class << view
      def widgets_path
        "/widgets"
      end
      alias collection_path widgets_path
    end
    view
  end

  test "country_select renders without an error" do
    assert arbre(widget: Widget.new) {
      express_form(:widget) {
        country_select :column6
      }
    }
  end

  test "can change label for country_select" do
    html = arbre(widget: Widget.new) {
      express_form(:widget) {
        country_select :column6, label: "Country"
      }
    }
    assert_match(/<label.*Country<\/label>/, html)
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
express_admin-1.7.16 test/dummy/test/components/country_select_test.rb
express_admin-1.7.16.pre1 test/dummy/test/components/country_select_test.rb
express_admin-1.7.15 test/dummy/test/components/country_select_test.rb
express_admin-1.7.14 test/dummy/test/components/country_select_test.rb
express_admin-1.7.13 test/dummy/test/components/country_select_test.rb
express_admin-1.7.12 test/dummy/test/components/country_select_test.rb
express_admin-1.7.11 test/dummy/test/components/country_select_test.rb
express_admin-1.7.10 test/dummy/test/components/country_select_test.rb
express_admin-1.7.9 test/dummy/test/components/country_select_test.rb
express_admin-1.7.8 test/dummy/test/components/country_select_test.rb
express_admin-1.7.7 test/dummy/test/components/country_select_test.rb
express_admin-1.7.5 test/dummy/test/components/country_select_test.rb
express_admin-1.7.4 test/dummy/test/components/country_select_test.rb
express_admin-1.7.3 test/dummy/test/components/country_select_test.rb
express_admin-1.7.2 test/dummy/test/components/country_select_test.rb
express_admin-1.7.1 test/dummy/test/components/country_select_test.rb
express_admin-1.6.13 test/dummy/test/components/country_select_test.rb
express_admin-1.6.12 test/dummy/test/components/country_select_test.rb
express_admin-1.6.11 test/dummy/test/components/country_select_test.rb
express_admin-1.6.10 test/dummy/test/components/country_select_test.rb