test/base/test_compiler.rb in nanoc-4.6.1 vs test/base/test_compiler.rb in nanoc-4.6.2

- old
+ new

@@ -3,12 +3,11 @@ class Nanoc::Int::CompilerTest < Nanoc::TestCase def new_compiler(site = nil) site ||= Nanoc::Int::Site.new( config: nil, code_snippets: [], - items: [], - layouts: [], + data_source: Nanoc::Int::InMemDataSource.new([], []), ) reps = Nanoc::Int::ItemRepRepo.new action_provider = Nanoc::Int::ActionProvider.named(:rule_dsl).for(site) @@ -74,14 +73,14 @@ site = Nanoc::Int::SiteLoader.new.new_from_cwd site.compile assert File.file?('output/moo-raw.txt') - # assert File.file?('output/moo-pre.txt') + assert File.file?('output/moo-pre.txt') assert File.file?('output/moo-post.txt') assert File.file?('output/moo-last.txt') assert_equal '<%= 1 %> <%%= 2 %> <%%%= 3 %>', File.read('output/moo-raw.txt') - # assert_equal '1 2 <%= 3 %>', File.read('output/moo-pre.txt') + assert_equal '1 2 <%= 3 %>', File.read('output/moo-pre.txt') assert_equal 'head 1 2 3 foot', File.read('output/moo-post.txt') assert_equal 'head 1 2 3 foot', File.read('output/moo-last.txt') end end