Sha256: fff7dbf6665f9fb54b166d79b0cefecbc4a0ab6df0e554f70e4f57659582743a
Contents?: true
Size: 553 Bytes
Versions: 6
Compression:
Stored size: 553 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[spec_helper]) describe Mongo3 do before( :all ) do @root = ::File.expand_path( ::File.join(::File.dirname(__FILE__), ".." ) ) end it "is versioned" do Mongo3.version.should =~ /\d+\.\d+\.\d+/ end it "generates a correct path relative to root" do Mongo3.path( "mongo3.rb" ).should == ::File.join(@root, "mongo3.rb" ) end it "generates a correct path relative to lib" do Mongo3.libpath(%w[ mongo3 node.rb]).should == ::File.join( @root, "lib", "mongo3", "node.rb" ) end end
Version data entries
6 entries across 6 versions & 1 rubygems