spec/integration/ui/matrix_spec.rb in pact_broker-2.79.1 vs spec/integration/ui/matrix_spec.rb in pact_broker-2.80.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'pact_broker/ui/app'
+require "pact_broker/ui/app"
describe "UI matrix" do
let(:app) { PactBroker::UI::App.new }
let(:td) { TestDataBuilder.new }
let(:params) { {} }
@@ -17,14 +17,14 @@
it "returns a success response" do
expect(subject.status).to eq 200
end
it "returns the matrix page" do
- expect(subject.body).to include ("Matrix")
+ expect(subject.body).to include("Matrix")
end
it "returns a table of matrix rows" do
- expect(subject.body.scan('<tr').to_a.count).to be > 1
+ expect(subject.body.scan("<tr").to_a.size).to be > 1
end
end
describe "with query params, for the latest tagged versions of two pacticipants" do
subject { get("/matrix?q%5B%5Dpacticipant=Foo&q%5B%5Dtag=ctag&q%5B%5Dlatest=true&q%5B%5Dpacticipant=Bar&q%5B%5Dtag=ptag&q%5B%5Dlatest=true&latestby=cvpv&limit=100") }