diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2018-03-08 12:56:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-08 12:56:54 +0000 |
commit | 5c7a738105b88c52d7765791419ee398d9e27ae0 (patch) | |
tree | 3c317bc276420ae774b9fd0edea1788fdebd347b /spec/lib | |
parent | a284400099af145fe63c6a00609ea59f768d383c (diff) | |
download | gitlab-ce-5c7a738105b88c52d7765791419ee398d9e27ae0.tar.gz |
[CE] Add Naming/FileName rule checking expected class/module per filename
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/constraints/group_url_constrainer_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/constraints/project_url_constrainer_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/constraints/user_url_constrainer_spec.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/constraints/group_url_constrainer_spec.rb b/spec/lib/constraints/group_url_constrainer_spec.rb index 4dab58b26a0..ff295068ba9 100644 --- a/spec/lib/constraints/group_url_constrainer_spec.rb +++ b/spec/lib/constraints/group_url_constrainer_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe GroupUrlConstrainer do +describe Constraints::GroupUrlConstrainer do let!(:group) { create(:group, path: 'gitlab') } describe '#matches?' do diff --git a/spec/lib/constraints/project_url_constrainer_spec.rb b/spec/lib/constraints/project_url_constrainer_spec.rb index 92331eb2e5d..c96e7ab8495 100644 --- a/spec/lib/constraints/project_url_constrainer_spec.rb +++ b/spec/lib/constraints/project_url_constrainer_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe ProjectUrlConstrainer do +describe Constraints::ProjectUrlConstrainer do let!(:project) { create(:project) } let!(:namespace) { project.namespace } diff --git a/spec/lib/constraints/user_url_constrainer_spec.rb b/spec/lib/constraints/user_url_constrainer_spec.rb index cb3b4ff1391..e2c85bb27bb 100644 --- a/spec/lib/constraints/user_url_constrainer_spec.rb +++ b/spec/lib/constraints/user_url_constrainer_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe UserUrlConstrainer do +describe Constraints::UserUrlConstrainer do let!(:user) { create(:user, username: 'dz') } describe '#matches?' do |