Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.12 KB

File metadata and controls

42 lines (32 loc) · 1.12 KB
title Code examples

Code examples

A paragraph with a code element within it.

code element within a link

An example of a table with a code element within it.

httpResult Message How to fix
400 [{
"error": "BadRequestError",
"message": "Can't send to this recipient using a team-only API key"
]}
Use the correct type of API key

An example of a code block with a long line length

# Example comment to check syntax highlighting for comments
RSpec.describe ContentItem do
  subject { described_class.new(base_path) }
  let(:base_path) { "/search/news-and-communications" }
  let(:finder_content_item) { news_and_communications }
  let(:news_and_communications) {
    JSON.parse(File.read(Rails.root.join("features", "fixtures", "news_and_communications.json")))
  }

  RSpec.describe "as_hash" do
    it "returns a content item as a hash" do
      expect(subject.as_hash).to eql(finder_content_item)
    end
  end
end

An example of a code block with a short length

RSpec.describe ContentItem do
end