gitlab-org--gitlab-foss/spec/lib
Lin Jen-Shin f71fc9328c Also verify if extending would override a class method
Since extending a class means including on the singleton class of the
class, this should now complain this:

``` ruby
module M
  extend Gitlab::Utils::Override

  override :f
  def f
    super.succ
  end
end

class C
  extend M

  def self.f
    0
  end
end
```

It should complain because `C.f` wasn't calling `M#f`.
This should pass verification:

``` ruby
module M
  extend Gitlab::Utils::Override

  override :f
  def f
    super.succ
  end
end

class B
  def self.f
    0
  end
end

class C < B
  extend M
end
```

Because `C.f` would now call `M#f`, and `M#f` does override something.
2018-06-05 13:40:52 +08:00
..
api Merge branch 'ab-42194-keyset-pagination' into 'master' 2018-05-22 11:19:34 +00:00
backup Use File.join in DeleteAllRepositories test 2018-06-01 13:54:34 +02:00
banzai Merge branch 'master' into bootstrap4 2018-05-21 09:17:16 -05:00
bitbucket
constraints
container_registry
gitaly
gitlab Also verify if extending would override a class method 2018-06-05 13:40:52 +08:00
google_api Remove redundant GoogleApi::CloudPlatform::Client methods 2018-05-11 18:45:45 +02:00
json_web_token
mattermost Updated Mattermost integration to use Mattermost API v4 2018-05-28 09:18:43 -04:00
microsoft_teams
omni_auth/strategies Eliminate constants warnings by: 2018-06-01 13:46:46 +08:00
rspec_flaky
system_check
additional_email_headers_interceptor_spec.rb
after_commit_queue_spec.rb
disable_email_interceptor_spec.rb
event_filter_spec.rb
expand_variables_spec.rb
extracts_path_spec.rb
feature_spec.rb Use RequestStore to memoize Flipper features so that memoized values are cleared between requests 2018-06-01 17:51:40 +02:00
file_size_validator_spec.rb
forever_spec.rb
gitlab_spec.rb Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory 2018-05-24 10:14:01 +02:00
milestone_array_spec.rb
system_check_spec.rb
uploaded_file_spec.rb