Fix indentations
This commit is contained in:
@@ -721,7 +721,7 @@ describe Debate do
|
|||||||
|
|
||||||
describe "#recommendations" do
|
describe "#recommendations" do
|
||||||
|
|
||||||
let(:user) { create(:user) }
|
let(:user) { create(:user) }
|
||||||
|
|
||||||
it "does not return any debates when user has not interests" do
|
it "does not return any debates when user has not interests" do
|
||||||
create(:debate)
|
create(:debate)
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ describe Poll do
|
|||||||
|
|
||||||
it "returns restricted & unrestricted polls for level 2 users of the correct geozone" do
|
it "returns restricted & unrestricted polls for level 2 users of the correct geozone" do
|
||||||
list = described_class.answerable_by(level2_from_geozone)
|
list = described_class.answerable_by(level2_from_geozone)
|
||||||
.order(:geozone_restricted)
|
.order(:geozone_restricted)
|
||||||
expect(list.to_a).to eq([current_poll, current_restricted_poll])
|
expect(list.to_a).to eq([current_poll, current_restricted_poll])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ describe Verification::Residence do
|
|||||||
|
|
||||||
it "validates user has allowed age" do
|
it "validates user has allowed age" do
|
||||||
residence = described_class.new("date_of_birth(3i)" => "1",
|
residence = described_class.new("date_of_birth(3i)" => "1",
|
||||||
"date_of_birth(2i)" => "1",
|
"date_of_birth(2i)" => "1",
|
||||||
"date_of_birth(1i)" => 5.years.ago.year.to_s)
|
"date_of_birth(1i)" => 5.years.ago.year.to_s)
|
||||||
expect(residence).to_not be_valid
|
expect(residence).to_not be_valid
|
||||||
expect(residence.errors[:date_of_birth]).to include("You don't have the required age to participate")
|
expect(residence.errors[:date_of_birth]).to include("You don't have the required age to participate")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user