spec/sitepress/compiler_spec.rb in sitepress-rails-3.2.2 vs spec/sitepress/compiler_spec.rb in sitepress-rails-4.0.0.beta1

- old
+ new

@@ -1,14 +1,14 @@ require "spec_helper" require "tmpdir" require "fileutils" -describe Sitepress::Compiler do +describe Sitepress::Compiler::Files do let(:site) { Sitepress.site } let(:build_path) { Pathname.new(Dir::tmpdir).join("build") } # Write compiler output to /dev/null so our test output remains clean. let(:stdout) { File.open(File::NULL, "w") } - subject { Sitepress::Compiler.new(site: site, stdout: stdout, root_path: build_path) } + subject { Sitepress::Compiler::Files.new(site: site, stdout: stdout, root_path: build_path) } describe "#compile" do before { FileUtils.mkdir_p(build_path) } after { FileUtils.rm_rf(build_path) } it "writes files to build_path" do subject.compile