From b398265a98d25e5036bc94ee8ae706a38aa5784d Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Thu, 6 Jan 2022 13:56:55 +0100 Subject: [PATCH] Address review comments from @nilsding Co-authored-by: Georg Gadinger --- app/models/user.rb | 2 +- spec/models/user_ban_spec.rb | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 spec/models/user_ban_spec.rb diff --git a/app/models/user.rb b/app/models/user.rb index 0581621a..612c8a8d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -232,7 +232,7 @@ class User < ApplicationRecord end # Bans a user. - # @param duration [Fixnum, nil] Ban duration + # @param duration [Integer?] Ban duration # @param duration_unit [String, nil] Unit for the duration parameter. Accepted units: hours, days, weeks, months # @param reason [String] Reason for the ban. This is displayed to the user. # @param banned_by [User] User who instated the ban diff --git a/spec/models/user_ban_spec.rb b/spec/models/user_ban_spec.rb deleted file mode 100644 index f7902eea..00000000 --- a/spec/models/user_ban_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe UserBan, type: :model do - pending "add some examples to (or delete) #{__FILE__}" -end