spec/linkparser_spec.rb in linkparser-1.0.4 vs spec/linkparser_spec.rb in linkparser-1.1.0

- old
+ new

@@ -1,30 +1,36 @@ #!/usr/bin/ruby -w # # Specification for the LinkParser library -# $Id: linkparser_spec.rb 48 2008-12-19 18:30:33Z deveiant $ +# $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 'spec/runner' +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 \ No newline at end of file