Sha256: dbd3877203918d961c65df2f37dcce85fea9a35ec9be67a4f076e5270bec5160
Contents?: true
Size: 528 Bytes
Versions: 50
Compression:
Stored size: 528 Bytes
Contents
require 'test_helper' module Components class IconTest < ActiveSupport::TestCase def assigns {} end def helpers mock_action_view 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
50 entries across 50 versions & 1 rubygems