Sha256: 53cf5b93ae50ebd234ea08d7aba5e5c9945337f373801decafff54919c70aa31

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

require "spec_helper"

describe Docks::SymbolSources do
  subject { described_class }

  before(:each) do
    Docks::Languages.register_bundled_languages
  end

  describe "#path_for" do
    it "returns nil when no sources recognize a symbol" do
      expect(subject.path_for("foo")).to be nil
    end

    it "returns the path from a symbol source that recognizes the symbol" do
      expect(subject.path_for("jquery")).to eq Docks::SymbolSources::JQuery.instance.path_for("jquery")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 spec/lib/symbol_sources_spec.rb
docks_app-0.0.2 spec/lib/symbol_sources_spec.rb
docks_app-0.0.1 spec/lib/symbol_sources_spec.rb