Sha256: 3ab8dc7da095245597e24bbb6ac15fed702ccd793080de45f91ffbaa17ca9600
Contents?: true
Size: 943 Bytes
Versions: 7
Compression:
Stored size: 943 Bytes
Contents
# # ActiveFacts tests: Parse all NORMA files and check the generated CQL. # Copyright (c) 2008 Clifford Heath. Read the LICENSE file. # require 'stringio' require 'activefacts/vocabulary' require 'activefacts/support' require 'activefacts/input/cql' require 'activefacts/generate/cql' describe "CQL Parser" do cql_failures = { "Airline" => "Contains queries, unsupported", "CompanyQuery" => "Contains queries, unsupported", } pattern = ENV["AFTESTS"] || "*" Dir["examples/CQL/#{pattern}.cql"].each do |cql_file| it "should load CQL #{cql_file} without parse errors" do broken = cql_failures[File.basename(cql_file, ".cql")] if broken pending(broken) { lambda { vocabulary = ActiveFacts::Input::CQL.readfile(cql_file) }.should_not raise_error } else lambda { vocabulary = ActiveFacts::Input::CQL.readfile(cql_file) }.should_not raise_error end end end end
Version data entries
7 entries across 7 versions & 1 rubygems