spec/vendorer_spec.rb in vendorer-0.1.12 vs spec/vendorer_spec.rb in vendorer-0.1.13

- old
+ new

@@ -157,9 +157,21 @@ it "does not run the block when not updating" do vendorer vendorer.should_not include(@output) end end + + context "with a compressed resource" do + def vendorfile_for_compressed_resource + write 'Vendorfile', "file 'public/javascripts/highcharts.js', 'http://code.highcharts.com/highcharts.js'" + end + + it "decompresses to plain text" do + vendorfile_for_compressed_resource + vendorer + read('public/javascripts/highcharts.js').should include('Highcharts') + end + end end describe '#folder' do before do write 'Vendorfile', "folder 'its_recursive', '../../.git'"