Sha256: 5860c65009a9fd061e9d31c0ccfabe04dac0801d22a57cbf9bb6bbf727517ecb

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

describe 'GH-970 (show-rules)', site: true, stdio: true do
  before do
    File.write('content/foo.md', 'foo')

    File.write('Rules', <<EOS)
compile '/foo.*' do
  write '/donkey.html'
end
EOS
  end

  it 'shows reps' do
    expect { Nanoc::CLI.run(%w[show-rules --no-color]) }.to(
      output(/^Item \/foo\.md:\n  Rep default: \/foo\.\*$/).to_stdout,
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.7.9 spec/nanoc/regressions/gh_970a_spec.rb
nanoc-4.7.8 spec/nanoc/regressions/gh_970a_spec.rb
nanoc-4.7.7 spec/nanoc/regressions/gh_970a_spec.rb
nanoc-4.7.6 spec/nanoc/regressions/gh_970a_spec.rb