Sha256: 98f2f0f049337fe2a4de96b0f34790badd8f43727c3764be3e5f262eadd5c2fd

Contents?: true

Size: 728 Bytes

Versions: 4

Compression:

Stored size: 728 Bytes

Contents

require 'spec_helper'

describe ::Libsql::Paths do
  before(:each) do
    @root_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
    @root_dir += "/"
  end

  it "root dir should be correct" do
    ::Libsql::Paths.root_dir.should == @root_dir
  end

  it "config_path should be correct" do
    ::Libsql::Paths.config_path.should == File.join(@root_dir, "config/")
  end

  it "data path should be correct" do
    ::Libsql::Paths.data_path.should == File.join(@root_dir, "data/")
  end

  it "lib path should be correct" do
    ::Libsql::Paths.lib_path.should == File.join(@root_dir, "lib/")
  end

  it "ext path should be correct" do
    ::Libsql::Paths.ext_path.should == File.join(@root_dir, "ext/")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libsql-0.1.0-x64-mingw-ucrt spec/paths_spec.rb
libsql-0.1.0-x64-mingw32 spec/paths_spec.rb
libsql-0.1.0-x86-mingw32 spec/paths_spec.rb
libsql-0.1.0 spec/paths_spec.rb