diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 11:25:50 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:22 -0600 |
commit | f74ca33a32fbf810b377cf480e996fb383d8f400 (patch) | |
tree | b49de25e505da3ee7ca44493c4934b1add025130 /spec | |
parent | f3a83dc8fc377357291fd25d333f5b5a3616fae9 (diff) | |
download | gitlab-ce-f74ca33a32fbf810b377cf480e996fb383d8f400.tar.gz |
Enable Style/ClassCheck
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/login_helpers.rb | 2 | ||||
-rw-r--r-- | spec/support/matchers/access_matchers.rb | 2 | ||||
-rw-r--r-- | spec/support/select2_helper.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index dd4c7287655..9ffb00be0b8 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -16,7 +16,7 @@ module LoginHelpers # login_as(user) def login_as(user_or_role) @user = - if user_or_role.kind_of?(User) + if user_or_role.is_a?(User) user_or_role else create(user_or_role) diff --git a/spec/support/matchers/access_matchers.rb b/spec/support/matchers/access_matchers.rb index ceddb656596..7d238850520 100644 --- a/spec/support/matchers/access_matchers.rb +++ b/spec/support/matchers/access_matchers.rb @@ -38,7 +38,7 @@ module AccessMatchers end def description_for(user, type) - if user.kind_of?(User) + if user.is_a?(User) # User#inspect displays too much information for RSpec's descriptions "be #{type} for the specified user" else diff --git a/spec/support/select2_helper.rb b/spec/support/select2_helper.rb index d30cc8ff9f2..0d526045012 100644 --- a/spec/support/select2_helper.rb +++ b/spec/support/select2_helper.rb @@ -12,7 +12,7 @@ module Select2Helper def select2(value, options = {}) - raise ArgumentError, 'options must be a Hash' unless options.kind_of?(Hash) + raise ArgumentError, 'options must be a Hash' unless options.is_a?(Hash) selector = options.fetch(:from) |