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/routing | |
parent | a284400099af145fe63c6a00609ea59f768d383c (diff) | |
download | gitlab-ce-5c7a738105b88c52d7765791419ee398d9e27ae0.tar.gz |
[CE] Add Naming/FileName rule checking expected class/module per filename
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/routing_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 56d025f0176..9345671a1a7 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -9,7 +9,7 @@ require 'spec_helper' # user_calendar_activities GET /u/:username/calendar_activities(.:format) describe UsersController, "routing" do it "to #show" do - allow_any_instance_of(UserUrlConstrainer).to receive(:matches?).and_return(true) + allow_any_instance_of(::Constraints::UserUrlConstrainer).to receive(:matches?).and_return(true) expect(get("/User")).to route_to('users#show', username: 'User') end @@ -210,7 +210,7 @@ describe Profiles::KeysController, "routing" do # get all the ssh-keys of a user it "to #get_keys" do - allow_any_instance_of(UserUrlConstrainer).to receive(:matches?).and_return(true) + allow_any_instance_of(::Constraints::UserUrlConstrainer).to receive(:matches?).and_return(true) expect(get("/foo.keys")).to route_to('profiles/keys#get_keys', username: 'foo') end |