Sha256: fd2b42bac188f08618fa37c25479ccba1c9c7ffe2423903b5bea790b7e707119

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

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

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

  it 'writes to path corresponding to identifier' do
    Nanoc::CLI.run(%w[compile])

    expect(File.file?('output/foo.md')).to eq(true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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