Sha256: 5e064e62d9c642d86d3e157aa0ad54bb0e3ffd18195ca547aa90ddad0788c8ab

Contents?: true

Size: 468 Bytes

Versions: 23

Compression:

Stored size: 468 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
require 'open3'

# This spec checks that the examples are still working.
files = Dir["#{File.dirname(__FILE__)}/../example/*.rb"]
files.delete_if do |file|
  file =~ /example_helper.rb/
end

files.each do |example|
  describe "Example (#{File.basename(example)})" do
    it 'should not output errors' do
      _, _, stderr = Open3.popen3("ruby #{example} 1> /dev/null")
      stderr.gets.should be_nil
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.1.1.1 specs/examples.rb
gecoder-with-gecode-1.1.1 specs/examples.rb
gecoder-1.1.1 specs/examples.rb
gecoder-with-gecode-1.1.0 specs/examples.rb
gecoder-1.1.0 specs/examples.rb
gecoder-with-gecode-0.8.3-mswin32 specs/examples.rb
gecoder-with-gecode-0.8.2-mswin32 specs/examples.rb
gecoder-with-gecode-0.8.1-mswin32 specs/examples.rb
gecoder-0.8.3 specs/examples.rb
gecoder-0.8.2 specs/examples.rb
gecoder-0.8.1 specs/examples.rb
gecoder-0.9.0 specs/examples.rb
gecoder-0.9.1 specs/examples.rb
gecoder-1.0.0 specs/examples.rb
gecoder-with-gecode-0.8.1 specs/examples.rb
gecoder-with-gecode-0.8.2 specs/examples.rb
gecoder-with-gecode-0.8.3 specs/examples.rb
gecoder-with-gecode-0.9.0-x86-mswin32-60 specs/examples.rb
gecoder-with-gecode-0.9.0 specs/examples.rb
gecoder-with-gecode-0.9.1-x86-mswin32-60 specs/examples.rb