Skip to content

Commit

Permalink
lint: Fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Dec 4, 2023
1 parent 6ffaa7e commit 9a225a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/commands/decidim/create_registration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Comments
"postal_code" => "08012",
"city" => "Barcelona",
"certification" => "1",
"news_cese" => "1",
"news_cese" => "1"
}
}
end
Expand Down Expand Up @@ -75,7 +75,7 @@ module Comments
command.call
user.reload
end.to broadcast(:invalid)
.and change(user.reload, :invitation_token)
.and change(user.reload, :invitation_token)
expect(ActionMailer::DeliveryJob).to have_been_enqueued.on_queue("mailers").twice
end
end
Expand Down Expand Up @@ -106,17 +106,17 @@ module Comments
postal_code: "08012",
city: "Barcelona",
certification: true,
news_cese: true,
news_cese: true
}
).and_call_original

expect { command.call }.to change(User, :count).by(1)
end

it "sets the password_updated_at to the current time" do
expect { command.call }.to broadcast(:ok)
expect(User.last.password_updated_at).to be_between(2.seconds.ago, Time.current)
end
it "sets the password_updated_at to the current time" do
expect { command.call }.to broadcast(:ok)
expect(User.last.password_updated_at).to be_between(2.seconds.ago, Time.current)
end

describe "when user keeps the newsletter unchecked" do
let(:newsletter) { "0" }
Expand Down

0 comments on commit 9a225a5

Please sign in to comment.