spec/compiler_spec.rb in smallvictories-0.0.12 vs spec/compiler_spec.rb in smallvictories-0.0.13
- old
+ new
@@ -132,11 +132,11 @@
end
end
context 'with invalid files' do
before do
- allow_any_instance_of(SmallVictories::Configuration).to receive(:source).and_return('./spec/fixtures/invalid')
+ allow_any_instance_of(SmallVictories::Configuration).to receive(:source).and_return('./spec/fixtures/invalid')
end
it 'does not generate a css file' do
compiler.package
expect(File.exists?(destination_css)).to eq false
@@ -148,9 +148,14 @@
end
it 'shows the error in html' do
compiler.compile_html
expect(File.open(destination_html).read).to include "<html>\n<h1>Index</h1>\nLiquid error: No such template 'snippet'\n\n</html>"
+ end
+
+ it 'ignores the sprite' do
+ compiler.compile_sprite
+ expect(File.exists?(destination_sprite_style)).to eq false
end
end
describe '#compile_sprite' do
it 'compiles the image files into a sprite' do