summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-04 13:20:55 +0100
committerJames Lopez <james@jameslopez.es>2016-02-04 13:20:55 +0100
commit7b868c61ab371fc9319e6dd1baa2c089bc275618 (patch)
treef597741be1e445b178830d9b22998d9c20b33737 /spec/controllers
parentecb174bfeadffbccc5c5cf35b6e94b65f5fbce79 (diff)
downloadgitlab-ce-7b868c61ab371fc9319e6dd1baa2c089bc275618.tar.gz
refactored migration and spec based on feedback
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb
index 245cf96d644..6eee4dfe229 100644
--- a/spec/controllers/projects_controller_spec.rb
+++ b/spec/controllers/projects_controller_spec.rb
@@ -88,10 +88,10 @@ describe ProjectsController do
end
context "when the url contains .atom" do
- let(:public_project_with_dot_atom) { create(:project, :public, name: 'my.atom', path: 'my.atom') }
+ let(:public_project_with_dot_atom) { build(:project, :public, name: 'my.atom', path: 'my.atom') }
it 'expect an error creating the project' do
- expect { public_project_with_dot_atom }.to raise_error(ActiveRecord::RecordInvalid)
+ expect(public_project_with_dot_atom).not_to be_valid
end
end
end