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

Version Path
govuk-design-system-rails-0.10.3 spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb
govuk-design-system-rails-0.10.2 spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb
govuk-design-system-rails-0.10.1 spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb