Sha256: e0816b87b378e03b2433424d1f7630ded25e83d0480f9563e30faa5ba33fa68a

Contents?: true

Size: 337 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.7.5 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.7.4 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.7.3 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.7.2 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.7.1 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.7.0 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.6.4 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.6.3 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.6.2 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.6.1 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.6.0 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.5.4 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.5.3 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.5.2 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.5.1 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.5.0 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.4.7 spec/nanoc/regressions/gh_974_spec.rb
nanoc-4.4.6 spec/nanoc/regressions/gh_974_spec.rb