about summary refs log tree commit diff
path: root/spec/models/setting_spec.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:24:16 -0500
committerGitHub <noreply@github.com>2023-02-18 03:24:16 +0100
commit54318dcd6d4a22a24c5d8afb7c950bed43df3964 (patch)
tree590b3bfa99665d82389d54beaf9f3514a7ab3da2 /spec/models/setting_spec.rb
parent634368c491c8e89d93b54dd2dc170f0873beafcb (diff)
Autofix Rubocop RSpec/ClassCheck (#23685)
Diffstat (limited to 'spec/models/setting_spec.rb')
-rw-r--r--spec/models/setting_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/setting_spec.rb b/spec/models/setting_spec.rb
index 3ccc21d6c..83ba415a8 100644
--- a/spec/models/setting_spec.rb
+++ b/spec/models/setting_spec.rb
@@ -127,7 +127,7 @@ RSpec.describe Setting, type: :model do
     let(:records)          { [original_setting] }
 
     it 'returns a Hash' do
-      expect(described_class.all_as_records).to be_kind_of Hash
+      expect(described_class.all_as_records).to be_a Hash
     end
 
     context 'records includes Setting with var as the key' do
@@ -146,7 +146,7 @@ RSpec.describe Setting, type: :model do
         it 'includes Setting with value of default_value' do
           setting = described_class.all_as_records[key]
 
-          expect(setting).to be_kind_of Setting
+          expect(setting).to be_a Setting
           expect(setting).to have_attributes(var: key)
           expect(setting).to have_attributes(value: 'default_value')
         end
@@ -181,7 +181,7 @@ RSpec.describe Setting, type: :model do
       let(:enabled) { true }
 
       it 'returns instance of RailsSettings::Default' do
-        is_expected.to be_kind_of RailsSettings::Default
+        is_expected.to be_a RailsSettings::Default
       end
     end
   end