Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-04 15:20:55 +0300
committerJames Lopez <james@jameslopez.es>2016-02-04 15:20:55 +0300
commit7b868c61ab371fc9319e6dd1baa2c089bc275618 (patch)
treef597741be1e445b178830d9b22998d9c20b33737 /spec
parentecb174bfeadffbccc5c5cf35b6e94b65f5fbce79 (diff)
refactored migration and spec based on feedback
Diffstat (limited to 'spec')
-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