diff options
-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 |