Skip to content

Commit

Permalink
test: update index spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 26, 2021
1 parent 2a196b7 commit 0758853
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/integration/ui/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
get "/"
end

subject { get("/", params, {}); last_response }
let(:rack_env) { {} }

subject { get("/", params, rack_env) }

describe "GET" do
it "returns a success response" do
Expand All @@ -40,9 +42,7 @@
end

context "with the base_url set" do
before do
allow(PactBroker.configuration).to receive(:base_url).and_return('http://example.org/pact-broker')
end
let(:rack_env) { { "pactbroker.base_url" => "http://example.org/pact-broker"} }

it "returns absolute links" do
expect(subject.body).to include "href='http://example.org/pact-broker/stylesheets"
Expand Down

0 comments on commit 0758853

Please sign in to comment.