Sha256: d73808e6d8f70ace98253f8ed37d04b700affc18a9df26b80b71e92d1292880d
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
# encoding: utf-8 require 'test/helper' class Nanoc3::CLI::Commands::CreateLayoutTest < MiniTest::Unit::TestCase include Nanoc3::TestHelpers def test_can_compile_new_layout Nanoc3::CLI::Base.new.run([ 'create_site', 'foo' ]) FileUtils.cd('foo') do # Create new layout Nanoc3::CLI::Base.new.run([ 'create_layout', 'moo' ]) # Makes rules use new layout rules_raw = File.read('Rules') File.open('Rules', 'w') do |io| io.write rules_raw.sub("layout 'default'", "layout 'moo'") end site = Nanoc3::Site.new('.') site.load_data site.compiler.run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc3-3.1.9 | test/cli/commands/test_create_layout.rb |
nanoc3-3.1.8 | test/cli/commands/test_create_layout.rb |