Sha256: b0385c5e0f964bb1a37af22718371c667935891564a83de9e51d50b3accf382a
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
require 'test_helper' require 'ostruct' class CountrySelectTest < ActiveSupport::TestCase def assigns {person: ::Person.new} end def helpers mock_action_view do def people_path '/people' end end end test "country_select renders without an error" do assert arbre { express_form(:person) { country_select :country_code } } end test "can change label for country_select" do html = arbre { express_form(:person) { country_select :country_code, label: "Country" } } assert_match(/<label.*Country<\/label>/, html) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
express_admin-1.6.4 | vendor/gems/express_templates/test/components/forms/country_select_test.rb |
express_templates-0.11.2 | test/components/forms/country_select_test.rb |