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