Sha256: 5fb0778843186fff48b99259cda2566422ea4af3ee2259312a808daee38445af
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
#!/usr/bin/env ruby BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent libdir = basedir + 'lib' $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 ) } require 'rspec' require 'spec/lib/helpers' require 'wordnet/lexicon' ##################################################################### ### C O N T E X T S ##################################################################### describe WordNet do include WordNet::SpecHelpers before( :all ) do setup_logging( :fatal ) end after( :all ) do reset_logging() end it "should know if its default logger is replaced" do WordNet.reset_logger WordNet.should be_using_default_logger WordNet.logger = Logger.new( $stderr ) WordNet.should_not be_using_default_logger end it "returns a version string if asked" do WordNet.version_string.should =~ /\w+ [\d.]+/ end it "returns a version string with a build number if asked" do WordNet.version_string(true).should =~ /\w+ [\d.]+ \(build [[:xdigit:]]+\)/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wordnet-1.0.0.pre.127 | spec/wordnet_spec.rb |
wordnet-1.0.0.pre.126 | spec/wordnet_spec.rb |