Sha256: 96ddfd0f55d2643f2bc0b84559d2288caf54f4afb9a28c1bac65f19e420dd893

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'
require 'squib'
require 'pp'

describe 'Squib samples' do

  Dir["#{samples_dir}/**/*.rb"].each do |sample|
    it "executes #{sample} with no errors", slow: true do
      allow(Squib.logger).to receive(:warn) {}
      allow(ProgressBar).to receive(:create).and_return(Squib::DoNothing.new)
      Dir.chdir(File.dirname(sample)) do
        load sample
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squib-0.11.0 spec/samples/run_samples_spec.rb
squib-0.10.0 spec/samples/run_samples_spec.rb