spec/absorption_spec.rb in activefacts-0.7.3 vs spec/absorption_spec.rb in activefacts-0.8.5

- old
+ new

@@ -1,11 +1,10 @@ # # ActiveFacts tests: Test the relational absorption by compiling CQL fragments. # Copyright (c) 2008 Clifford Heath. Read the LICENSE file. # -require 'rubygems' -require 'treetop' + require 'activefacts/support' require 'activefacts/api/support' require 'activefacts/input/cql' require 'activefacts/persistence' @@ -73,11 +72,11 @@ Tests.each do |test| should = test[:should] cql = test[:cql] expected_tables = test[:tables] it "should #{should}" do - @compiler = ActiveFacts::Input::CQL.new(cql, should) - @vocabulary = @compiler.read + @compiler = ActiveFacts::CQL::Compiler.new(cql, should) + @vocabulary = @compiler.vocabulary # puts cql # Ensure that the same tables were generated: tables = @vocabulary.tables.sort_by(&:name)