Sha256: f423afcdc056611107f69d025b3f7968a83c0c5c470a5cdc9106e0bc2a07c60e

Contents?: true

Size: 644 Bytes

Versions: 13

Compression:

Stored size: 644 Bytes

Contents

#
# ActiveFacts tests: Compare column lists created by aborption and by generated Ruby.
# Copyright (c) 2008 Clifford Heath. Read the LICENSE file.
#

require 'spec_helper'
require 'stringio'
require 'activefacts/vocabulary'
require 'activefacts/support'

describe "Requiring vocabularies in Ruby" do
  ruby_failures = {
    "MetamodelNext" => "Has a duplicate role name",
  }
  pattern = ENV["AFTESTS"] || "*"
  Dir["examples/ruby/#{pattern}.rb"].each do |ruby_file|
    base = File.basename(ruby_file, ".rb")
    next if ruby_failures.include?(base)
    it "#{ruby_file} should load cleanly" do
      require "./"+ruby_file
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activefacts-1.6.0 spec/ruby_api_spec.rb
activefacts-1.5.3 spec/ruby_api_spec.rb
activefacts-1.5.2 spec/ruby_api_spec.rb
activefacts-1.5.1 spec/ruby_api_spec.rb
activefacts-1.5.0 spec/ruby_api_spec.rb
activefacts-1.3.0 spec/ruby_api_spec.rb
activefacts-1.2.1 spec/ruby_api_spec.rb
activefacts-1.2.0 spec/ruby_api_spec.rb
activefacts-1.1.0 spec/ruby_api_spec.rb
activefacts-1.0.2 spec/ruby_api_spec.rb
activefacts-1.0.1 spec/ruby_api_spec.rb
activefacts-1.0.0 spec/ruby_api_spec.rb
activefacts-0.8.18 spec/ruby_api_spec.rb