Sha256: c29be8c7ce61879491aac4bf5b8b182ec040bcbe314f14bb6ae59ba716c01e66
Contents?: true
Size: 784 Bytes
Versions: 4
Compression:
Stored size: 784 Bytes
Contents
--- title: Code examples --- # Code examples A paragraph with a `code` element within it. <a href="#"><code>code element within a link</code></a> An example of a code block with a long line length ```ruby 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 ```ruby RSpec.describe ContentItem do end ```
Version data entries
4 entries across 4 versions & 1 rubygems