spec/jekyll-minifier_spec.rb in jekyll-minifier-0.1.8 vs spec/jekyll-minifier_spec.rb in jekyll-minifier-0.1.9
- old
+ new
@@ -20,9 +20,11 @@
}, overrides))
end
let(:site) { Jekyll::Site.new(config) }
let(:context) { make_context(site: site) }
before(:each) do
+ allow(ENV).to receive(:[]).and_call_original
+ allow(ENV).to receive(:[]).with('JEKYLL_ENV').and_return('production')
site.process
end
context "test_atom" do
it "creates a atom.xml file" do