Sha256: 6481517d4bb80d7298ed6039764a11a5fe6cd6760c885fd12380f508725d608a
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
require 'test_helper' module Components class IconTest < ActiveSupport::TestCase def assigns {} end def helpers mock_action_view(assigns) end def rendered_icon(*args) arbre { icon(*args) } end test "accepts string as input for icon name as id" do assert_match /i class="icon ion-beer"/, rendered_icon("beer") end test "accepts symbol as input for icon name as id" do assert_match /i class="icon ion-beer"/, rendered_icon(:beer) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_admin-1.4.10 | test/dummy/test/components/icon_test.rb |
express_admin-1.4.9 | test/dummy/test/components/icon_test.rb |