Sha256: 0293216d3d42ee1ecc4316fbdf39b7a374159cbf6313a03c1322864d898d6014

Contents?: true

Size: 453 Bytes

Versions: 14

Compression:

Stored size: 453 Bytes

Contents

require "spec_helper"

describe "Source Maps Feature" do
  let(:example) { Brief.example_document }
  let(:heading) { "A user wants to write epics" }

  it "returns the raw content under a given heading" do
    expect(example.content_under_heading(heading)).to include(heading)
  end

  it "returns the raw content under a given heading without the heading" do
    expect(example.content_under_heading(heading, false)).not_to include(heading)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/source_map_spec.rb
brief-1.17.13 spec/lib/brief/source_map_spec.rb
brief-1.17.12 spec/lib/brief/source_map_spec.rb
brief-1.17.11 spec/lib/brief/source_map_spec.rb
brief-1.17.10 spec/lib/brief/source_map_spec.rb
brief-1.17.9 spec/lib/brief/source_map_spec.rb
brief-1.17.8 spec/lib/brief/source_map_spec.rb
brief-1.17.7 spec/lib/brief/source_map_spec.rb
brief-1.17.5 spec/lib/brief/source_map_spec.rb
brief-1.17.4 spec/lib/brief/source_map_spec.rb
brief-1.17.3 spec/lib/brief/source_map_spec.rb
brief-1.17.2 spec/lib/brief/source_map_spec.rb
brief-1.17.1 spec/lib/brief/source_map_spec.rb
brief-1.17.0 spec/lib/brief/source_map_spec.rb