diff --git a/spec/models/debate_spec.rb b/spec/models/debate_spec.rb index c47e23a37..c99731251 100644 --- a/spec/models/debate_spec.rb +++ b/spec/models/debate_spec.rb @@ -721,7 +721,7 @@ describe Debate do describe "#recommendations" do - let(:user) { create(:user) } + let(:user) { create(:user) } it "does not return any debates when user has not interests" do create(:debate) diff --git a/spec/models/poll/poll_spec.rb b/spec/models/poll/poll_spec.rb index ae8be79b8..d97c3805a 100644 --- a/spec/models/poll/poll_spec.rb +++ b/spec/models/poll/poll_spec.rb @@ -169,7 +169,7 @@ describe Poll do it "returns restricted & unrestricted polls for level 2 users of the correct geozone" do 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]) end end diff --git a/spec/models/residence_spec.rb b/spec/models/residence_spec.rb index 13b57b463..72714ad07 100644 --- a/spec/models/residence_spec.rb +++ b/spec/models/residence_spec.rb @@ -26,8 +26,8 @@ describe Verification::Residence do it "validates user has allowed age" do residence = described_class.new("date_of_birth(3i)" => "1", - "date_of_birth(2i)" => "1", - "date_of_birth(1i)" => 5.years.ago.year.to_s) + "date_of_birth(2i)" => "1", + "date_of_birth(1i)" => 5.years.ago.year.to_s) expect(residence).to_not be_valid expect(residence.errors[:date_of_birth]).to include("You don't have the required age to participate") end