Sha256: f2d0c879da9140f2f5e3c7ecc52897e1be8e71a7dad0e1825b5d04b7e8a0fde1

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 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 unless sample =~ /project/ # ignore our project sample, run it below
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.12.0 spec/samples/run_samples_spec.rb