adds consistent indentation
This commit is contained in:
@@ -24,9 +24,9 @@ describe Verification::Residence do
|
||||
end
|
||||
|
||||
it "should validate user has allowed age" do
|
||||
residence = Verification::Residence.new({"date_of_birth(3i)"=>"1", "date_of_birth(2i)"=>"1", "date_of_birth(1i)"=>"#{5.year.ago.year}"})
|
||||
expect(residence).to_not be_valid
|
||||
expect(residence.errors[:date_of_birth]).to include("You need yo be at least 16 years old")
|
||||
residence = Verification::Residence.new({"date_of_birth(3i)"=>"1", "date_of_birth(2i)"=>"1", "date_of_birth(1i)"=>"#{5.year.ago.year}"})
|
||||
expect(residence).to_not be_valid
|
||||
expect(residence.errors[:date_of_birth]).to include("You need yo be at least 16 years old")
|
||||
end
|
||||
|
||||
it "should validate uniquness of document_number" do
|
||||
|
||||
Reference in New Issue
Block a user