gitlab-org--gitlab-foss/spec/lib/gitlab/utils
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
..
merge_hash_spec.rb
override_spec.rb Also verify if extending would override a class method 2018-06-05 13:40:52 +08:00
strong_memoize_spec.rb Fix rubocop offence 2017-12-12 17:40:54 +01:00