resources/asciidoctor/spec/edit_me_spec.rb [112:156]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              }
            end
            it 'adds a link to the enclosing chapter' do
              expect(converted).to include(stdin_link)
            end
            it "adds a link to #{type} 1" do
              link = edit_link 'foo'
              expect(converted).to include(link)
            end
            it "adds a link to #{type} 2" do
              link = edit_link 'bar'
              expect(converted).to include(link)
            end
            context 'when overriding to an empty string' do
              let(:input) do
                <<~ASCIIDOC
                  :edit_url:
                  include::resources/edit_me/#{type}1.adoc[]

                  include::resources/edit_me/#{type}2.adoc[]
                ASCIIDOC
              end
              it "doesn't add edit links to #{type} 1" do
                expect(converted).to include("#{type.capitalize} 1</")
              end
              it "doesn't add edit links to #{type} 2" do
                expect(converted).to include("#{type.capitalize} 2</")
              end
            end
          end
          context "when overriding the edit_url isn't allowed" do
            include_examples 'has standard edit links'
          end
        end
      end
    end
    include_examples 'all standard document parts'

    context 'when edit_urls has two matches' do
      let(:convert_attributes) do
        edit_urls = <<~CSV
          <stdin>,www.example.com/stdin
          #{spec_dir},www.example.com/spec_dir
          #{spec_dir}/resources/edit_me/section2.adoc,www.example.com/section2
        CSV
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



resources/asciidoctor/spec/edit_me_spec.rb [263:307]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              }
            end
            it 'adds a link to the enclosing chapter' do
              expect(converted).to include(stdin_link)
            end
            it "adds a link to #{type} 1" do
              link = edit_link 'foo'
              expect(converted).to include(link)
            end
            it "adds a link to #{type} 2" do
              link = edit_link 'bar'
              expect(converted).to include(link)
            end
            context 'when overriding to an empty string' do
              let(:input) do
                <<~ASCIIDOC
                  :edit_url:
                  include::resources/edit_me/#{type}1.adoc[]

                  include::resources/edit_me/#{type}2.adoc[]
                ASCIIDOC
              end
              it "doesn't add edit links to #{type} 1" do
                expect(converted).to include("#{type.capitalize} 1</")
              end
              it "doesn't add edit links to #{type} 2" do
                expect(converted).to include("#{type.capitalize} 2</")
              end
            end
          end
          context "when overriding the edit_url isn't allowed" do
            include_examples 'has standard edit links'
          end
        end
      end
    end
    include_examples 'all standard document parts'

    context 'when edit_urls has two matches' do
      let(:convert_attributes) do
        edit_urls = <<~CSV
          <stdin>,www.example.com/stdin
          #{spec_dir},www.example.com/spec_dir
          #{spec_dir}/resources/edit_me/section2.adoc,www.example.com/section2
        CSV
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



