Sha256: 7aaf2a8f2aa80f11576d0b767000ab63709c3ae0126a1958cf91e940092d5bd5

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

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

describe Squib do 

  context "all samples run without error" do
    it "should execute with no errors" do
      p = double("ProgressBar")
      allow(ProgressBar).to receive(:create).and_return(Squib::DoNothing.new)
      samples = File.expand_path('../samples', File.dirname(__FILE__))
      Dir["#{samples}/**/*.rb"].each do |sample|
        Dir.chdir(samples) do #to save to _output
          require_relative "../samples/#{File.basename(sample)}"
        end
      end
    end
  end    

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.0.4 spec/samples_run_spec.rb