Sha256: f6bb8ed260ca1092487f41b3927bd65a2eb71579ac6e58ea30af46659e95e022

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

require 'test_helper'

class AssetTest < ActionDispatch::IntegrationTest

  test "emojis are rendered to the page" do
    visit root_path

    MdEmoji::EMOJI.each do |emoji|
      assert_emoji emoji, page.body
    end
  end

  test "emoji assets are present" do
    MdEmoji::EMOJI.each do |emoji|
      emoji = emoji.gsub('+', 'plus')
      assert Dummy::Application.assets.find_asset("emojis/#{emoji}.png"),
        "Emoji (#{emoji}) asset missing"
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
md_emoji-1.0.2 test/asset_test.rb
cn_md_emoji-0.0.1 test/asset_test.rb
md_emoji-1.0.1 test/asset_test.rb
md_emoji-1.0.0 test/asset_test.rb
md_emoji-0.0.8 test/asset_test.rb