require "rails_helper" RSpec.describe GovukDesignSystem::InsetTextHelper, type: :helper do describe "#govukInsetText" do it "returns the correct HTML for the default example" do html = helper.govukInsetText({ text: "It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application." }) expect(html).to match_html(<<~HTML)
Creating a case starts from a product record page.
Find a product and create the case from there.
Creating a case starts from a product record page.
Find a product and create the case from there.