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-2.0.0.b test/dummy/test/components/country_select_test.rb
express_admin-2.0.0.a test/dummy/test/components/country_select_test.rb
express_admin-1.8.1 test/dummy/test/components/country_select_test.rb
express_admin-1.8.0 test/dummy/test/components/country_select_test.rb
express_admin-1.7.32 test/dummy/test/components/country_select_test.rb
express_admin-1.7.31 test/dummy/test/components/country_select_test.rb
express_admin-1.7.30 test/dummy/test/components/country_select_test.rb
express_admin-1.7.29 test/dummy/test/components/country_select_test.rb
express_admin-1.7.28 test/dummy/test/components/country_select_test.rb
express_admin-1.7.27 test/dummy/test/components/country_select_test.rb
express_admin-1.7.26 test/dummy/test/components/country_select_test.rb
express_admin-1.7.25 test/dummy/test/components/country_select_test.rb
express_admin-1.7.24 test/dummy/test/components/country_select_test.rb
express_admin-1.7.23 test/dummy/test/components/country_select_test.rb
express_admin-1.7.22 test/dummy/test/components/country_select_test.rb
express_admin-1.7.21 test/dummy/test/components/country_select_test.rb
express_admin-1.7.20 test/dummy/test/components/country_select_test.rb
express_admin-1.7.19 test/dummy/test/components/country_select_test.rb
express_admin-1.7.18 test/dummy/test/components/country_select_test.rb
express_admin-1.7.17 test/dummy/test/components/country_select_test.rb