Skip to content

Commit

Permalink
Change spec instead of port for Valkyrie::ID.
Browse files Browse the repository at this point in the history
The spec was failing sometimes because RDF::URI was comparing against it
and calling `to_uri` which was caching what the port was in AF.
  • Loading branch information
tpendragon committed Aug 9, 2018
1 parent 5ea28a9 commit 73daa48
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions spec/valkyrie/id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@

describe "#to_uri" do
context "when given a plain ID" do
before do
ENV['FCREPO_TEST_PORT'] = '8988'
end

after do
ENV.delete('FCREPO_TEST_PORT')
end

it "delegates down to AF" do
expect(id.to_uri).to eq RDF::URI("http://localhost:8988/rest/test/test")
expect(id.to_uri).to eq RDF::URI("http://localhost:8986/rest/test/test")
end
end
context "when given an external ID protocol" do
Expand Down

0 comments on commit 73daa48

Please sign in to comment.