diff options
author | James Lopez <james@jameslopez.es> | 2016-01-22 17:55:12 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-01-22 17:55:12 +0100 |
commit | 4d2da5fd2585fead823c4450e54613dadf882c0d (patch) | |
tree | 14bb2ae653c0ea6bbc3491abebfa397a88647dca /spec/controllers | |
parent | faa9ca0900438809a8faa21bc6daca1364cc6eaa (diff) | |
download | gitlab-ce-4d2da5fd2585fead823c4450e54613dadf882c0d.tar.gz |
WIP - spec failure on .atom project URL
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects_controller_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb index 665526fde93..ad143c14c43 100644 --- a/spec/controllers/projects_controller_spec.rb +++ b/spec/controllers/projects_controller_spec.rb @@ -86,6 +86,17 @@ describe ProjectsController do end end end + + context "when the url contains .atom" do + let(:public_project_with_dot) { create(:project, :public, name: 'my.atom', path: 'my.atom') } + + it 'loads a project' do + get :show, namespace_id: public_project_with_dot.namespace.path, id: public_project_with_dot.path + + expect(assigns(:project)).to eq(public_project_with_dot) + expect(response.status).to eq(200) + end + end end describe "#destroy" do |