Sha256: 3206215b17868ca6f98a124f904f8ae18f6a1c6731c741e02d9c70c5211976c4
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 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
4 entries across 4 versions & 1 rubygems