spec/samples/samples_regression_spec.rb in squib-0.0.6 vs spec/samples/samples_regression_spec.rb in squib-0.1.0
- old
+ new
@@ -10,10 +10,11 @@
example.run
end
end
it 'should execute with no errors' do
+ allow(Squib.logger).to receive(:warn) {}
allow(ProgressBar).to receive(:create).and_return(Squib::DoNothing.new)
Dir["#{samples_dir}/**/*.rb"].each do |sample|
load sample
end
end
@@ -41,24 +42,25 @@
# sure you inspect the change and make sure it makes sense with the change
# you made to the samples or Squib.
# FOR NOW!! These two I can't get working on Travis, so I'm disabling
# Has to do with UTF-8 encoding of a special characters
# layouts.rb
- # text_options.rb
- %w( hello_world.rb
- autoscale_font.rb
- save_pdf.rb
- custom_config.rb
- load_images.rb
+ # unicode.rb
+ %w( autoscale_font.rb
basic.rb
cairo_access.rb
- draw_shapes.rb
colors.rb
- excel.rb
csv_import.rb
+ custom_config.rb
+ draw_shapes.rb
+ excel.rb
+ hello_world.rb
+ load_images.rb
portrait-landscape.rb
- tgc_proofs.rb
ranges.rb
+ saves.rb
+ text_options.rb
+ tgc_proofs.rb
units.rb
).each do |sample|
it "has not changed for #{sample}" do
log = StringIO.new
mock_cairo(log)
\ No newline at end of file