#!/usr/bin/ruby -w # # Specification for the LinkParser library # $Id: linkparser_spec.rb,v 6c597e731a87 2010/11/22 15:59:36 ged $ # # See the LICENSE file in the distribution for information about copyright and licensing. # BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent libdir = basedir + 'lib' extdir = basedir + 'ext' $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s ) $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s ) $LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s ) } require 'rspec' require 'linkparser' describe LinkParser do before( :all ) do $DEBUG = true if ENV['DEBUG'] end it "knows what version of the link-grammar library it was built against" do LinkParser.link_grammar_version.should =~ /link-grammar-\d+\.\d+\.\d+/i end end