spec/linkparser_spec.rb in linkparser-1.1.4 vs spec/linkparser_spec.rb in linkparser-2.0.0

- old
+ new

@@ -1,36 +1,17 @@ -#!/usr/bin/ruby -w -# -# Specification for the LinkParser library -# $Id: linkparser_spec.rb,v 1eddd00723e6 2010/11/22 15:59:36 ged $ -# -# See the LICENSE file in the distribution for information about copyright and licensing. -# +# -*- ruby -*- +#encoding: utf-8 -BEGIN { - require 'pathname' - basedir = Pathname.new( __FILE__ ).dirname.parent +require_relative 'helpers' - 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 + expect( LinkParser.link_grammar_version ).to match( /link-grammar-\d+\.\d+\.\d+/i ) end -end \ No newline at end of file +end +