Sha256: 74224f63520d693e91c2b2f4903e91a295d7d29be47d4bd671db055dbda29130
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
require "rails_helper" RSpec.describe GovukDesignSystem::HmctsBadgeHelper, type: :helper do describe "#hmctsBadge" do it "returns the correct HTML for success" do html = helper.hmctsBadge({ text: "Information", classes: "hmcts-govuk-badge--green" }) expect(html).to match_html(<<~HTML) <span class="hmcts-badge hmcts-govuk-badge--green">Information</span> HTML end end end
Version data entries
3 entries across 3 versions & 1 rubygems