Sha256: 15f2393156e57586a5441ea5751890fad93296ad898cd904a2b43f3df0a05cee

Contents?: true

Size: 628 Bytes

Versions: 30

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

RSpec.describe Hydra::ContentNegotiation::ReplacingGraphFinder do
  let(:graph) { double }
  let(:finder) { double(graph: graph,
                        uri: 'http://127.0.0.1:8986/rest/test/28/01/ph/00/2801ph009',
                        id: '2801ph009') }
  let(:replacer) { double }
  subject { described_class.new finder, replacer }

  describe "graph" do
    it "has the correct base url" do
      expect(Hydra::ContentNegotiation::FedoraUriReplacer).to receive(:new)
      .with(ending_with("/rest/test"), graph, replacer)
       .and_return(double(run: nil))

      subject.graph
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
hydra-core-13.0.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-12.1.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-12.0.2 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.7 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-12.0.1 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.6 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.5 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.4 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-12.0.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.1 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.0.rc2 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.7.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.6.2 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.6.1 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.6.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.5.1 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-11.0.0.rc1 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.5.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb
hydra-core-10.4.0 spec/models/content_negotiation/replacing_graph_finder_spec.rb