Disable case sensitive spec for MySQL.

This commit is contained in:
Douwe Maan 2015-10-21 10:09:40 +02:00
parent e17e5a5ce4
commit 4a02dfa48f
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ describe ProjectsController do
let!(:other_project) { create(:project, :public, namespace: public_project.namespace, path: public_project.path.upcase) }
it "loads the exactly matched project" do
# MySQL queries are case insensitive by default, so this spec would fail.
skip if Gitlab::Database.mysql?
get :show, namespace_id: public_project.namespace.path, id: public_project.path.upcase
expect(assigns(:project)).to eq(other_project)