Sha256: 201bea6ba7971d7ba020756bf3521b85fdd5d248bc4cc769ee1dc169059ad3c0

Contents?: true

Size: 441 Bytes

Versions: 18

Compression:

Stored size: 441 Bytes

Contents

describe 'GH-913', site: true, stdio: true do
  before do
    File.write('content/hello.html', 'hi!')

    File.write('Rules', <<EOS)
  postprocess do
    items.map(&:compiled_content)
  end

  compile '/**/*' do
    write item.identifier.without_ext + '.html'
  end

  layout '/foo.*', :erb
EOS
  end

  example do
    2.times do
      Nanoc::CLI.run(%w(compile))
      expect(File.read('output/hello.html')).to eq('hi!')
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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