Sha256: 0877038224157b1b2e432bd84464588893e261ff29708294b4d5c6fa2776068a

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 Bytes

Contents

describe 'GH-809', site: true, stdio: true do
  before do
    File.write('content/greeting.md', 'Hallöchen!')
    File.write('Rules', <<EOS)
  compile '/**/*' do
    snapshot :something, path: '/greeting.tmp'
  end
EOS
  end

  specify 'stale check does not consider output/greeting.tmp as stale' do
    Nanoc::CLI.run(['compile'])

    regex = /Running check stale…   (\e\[32m)?ok(\e\[0m)?/
    expect { Nanoc::CLI.run(%w[check stale]) }.to output(regex).to_stdout
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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