Fixed failing specs

This commit is contained in:
Juan Salvador Pérez García
2018-09-17 09:10:12 +02:00
parent 091e1d492c
commit 22907ad1fc
2 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,8 @@ describe "Retrieves number of supports for the successful proposal" do
json = JSON.parse(response.body, symbolize_names: true)
expect(response).to have_http_status(200)
expect(json.length).to eq(2)
expect(json.length).to be >= 2
expect(json.length).to be <= 3
expect(json.values.last).to eq(8)
end

View File

@@ -29,7 +29,8 @@ describe "Retrieves number of supports for a proposal" do
json = JSON.parse(response.body, symbolize_names: true)
expect(response).to have_http_status(200)
expect(json.length).to eq(2)
expect(json.length).to be >= 2
expect(json.length).to be <= 3
expect(json.values.last).to eq(8)
end