From a7d2c7be7e91f254e10ed49b1573349694f8bff6 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 17 Apr 2022 17:56:25 +0200 Subject: [PATCH] Fix Hound nits --- app/javascript/styles/components/_entry.scss | 10 +++++----- spec/controllers/static_controller_spec.rb | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/javascript/styles/components/_entry.scss b/app/javascript/styles/components/_entry.scss index 7c6b9871..9d3dc03b 100644 --- a/app/javascript/styles/components/_entry.scss +++ b/app/javascript/styles/components/_entry.scss @@ -4,19 +4,19 @@ &__value { display: block; - text-align: center; font-size: 4rem; line-height: 1; margin-bottom: 0; + text-align: center; } &__description { - display: block; color: var(--primary); + display: block; + font-size: .8rem; + font-weight: bold; + margin-top: 0px; text-align: center; text-transform: uppercase; - font-weight: bold; - font-size: .8rem; - margin-top: 0px; } } \ No newline at end of file diff --git a/spec/controllers/static_controller_spec.rb b/spec/controllers/static_controller_spec.rb index 3c0003ca..125ddacc 100644 --- a/spec/controllers/static_controller_spec.rb +++ b/spec/controllers/static_controller_spec.rb @@ -7,10 +7,10 @@ describe StaticController, type: :controller do subject { get :about } before(:each) { - FactoryBot.create(:user, { confirmed_at: Time.now, answered_count: 1 }) + FactoryBot.create(:user, { confirmed_at: Time.current, answered_count: 1 }) FactoryBot.create(:user, { permanently_banned: true }) - FactoryBot.create(:user, { banned_until: Time.now + 10.days }) - FactoryBot.create(:user, { confirmed_at: Time.now }) + FactoryBot.create(:user, { banned_until: Time.current + 10.days }) + FactoryBot.create(:user, { confirmed_at: Time.current }) } it "shows the correct user count" do