From ea9ea77219a21d66a44577678f6210918f474656 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 23 Sep 2015 12:34:00 +0200 Subject: [PATCH] adds consistent indentation --- spec/models/residence_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/residence_spec.rb b/spec/models/residence_spec.rb index 1d623186e..9ccc3c2f3 100644 --- a/spec/models/residence_spec.rb +++ b/spec/models/residence_spec.rb @@ -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