test/base/test_compiler.rb in nanoc3-3.2.0a4 vs test/base/test_compiler.rb in nanoc3-3.2.0b1

- old
+ new

@@ -1,9 +1,7 @@ # encoding: utf-8 -require 'test/helper' - class Nanoc3::CompilerTest < MiniTest::Unit::TestCase include Nanoc3::TestHelpers def test_compilation_rule_for @@ -254,11 +252,11 @@ end end def test_disallow_routes_not_starting_with_slash # Create site - Nanoc3::CLI::Base.new.run([ 'create_site', 'bar' ]) + Nanoc3::CLI.run %w( create_site bar) FileUtils.cd('bar') do # Create routes File.open('Rules', 'w') do |io| io.write "compile '*' do\n" @@ -281,10 +279,10 @@ end end def test_load_should_be_idempotent # Create site - Nanoc3::CLI::Base.new.run([ 'create_site', 'bar' ]) + Nanoc3::CLI.run %w( create_site bar) FileUtils.cd('bar') do site = Nanoc3::Site.new('.') compiler = Nanoc3::Compiler.new(site)