Sha256: 117cb4816c2c6ecc9505fa58213c1f7ad335acfc0562cc41b378729c7eaef550

Contents?: true

Size: 481 Bytes

Versions: 17

Compression:

Stored size: 481 Bytes

Contents

require_relative "../../spec_helper.rb"

describe Rsense::Server::GemPath do

  it "returns the list of Gem paths" do
    Rsense::Server::GemPath.stub :fetch, ["/path/to/the/gems"] do
      Rsense::Server::GemPath.paths.first.must_match(/\/path\/to\/the\/gems/)
    end
  end

  it "excludes paths inside jruby\'s jars" do
    Rsense::Server::GemPath.stub :fetch, ["file: file in a jar"] do
      Rsense::Server::GemPath.paths.wont_include("file: file in a jar")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rsense-server-0.5.18 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.17 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.16 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.15 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.14 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.13 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.12 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.11 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.10 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.9 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.8 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.7 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.6 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.5 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.4 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.2 spec/rsense/server/gem_path_spec.rb
rsense-server-0.5.0 spec/rsense/server/gem_path_spec.rb