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

Version Path
express_admin-2.0.0.b test/dummy/test/components/icon_test.rb
express_admin-2.0.0.a test/dummy/test/components/icon_test.rb
express_admin-1.8.1 test/dummy/test/components/icon_test.rb
express_admin-1.8.0 test/dummy/test/components/icon_test.rb
express_admin-1.7.32 test/dummy/test/components/icon_test.rb
express_admin-1.7.31 test/dummy/test/components/icon_test.rb
express_admin-1.7.30 test/dummy/test/components/icon_test.rb
express_admin-1.7.29 test/dummy/test/components/icon_test.rb
express_admin-1.7.28 test/dummy/test/components/icon_test.rb
express_admin-1.7.27 test/dummy/test/components/icon_test.rb
express_admin-1.7.26 test/dummy/test/components/icon_test.rb
express_admin-1.7.25 test/dummy/test/components/icon_test.rb
express_admin-1.7.24 test/dummy/test/components/icon_test.rb
express_admin-1.7.23 test/dummy/test/components/icon_test.rb
express_admin-1.7.22 test/dummy/test/components/icon_test.rb
express_admin-1.7.21 test/dummy/test/components/icon_test.rb
express_admin-1.7.20 test/dummy/test/components/icon_test.rb
express_admin-1.7.19 test/dummy/test/components/icon_test.rb
express_admin-1.7.18 test/dummy/test/components/icon_test.rb
express_admin-1.7.17 test/dummy/test/components/icon_test.rb