diff options
author | Vincent Bonmalais <vb.kouno@gmail.com> | 2012-11-06 14:31:55 +1100 |
---|---|---|
committer | Vincent Bonmalais <vb.kouno@gmail.com> | 2012-11-13 22:27:45 +1100 |
commit | 80fb38de7abdfacbf5ad2e0150b934c1392721f0 (patch) | |
tree | 302ee55b21e8206ab44cef819a583803b9bb0c6f /spec/requests/projects_spec.rb | |
parent | d52f06f38013540a9798686aa37c4dad120c3d74 (diff) | |
download | gitlab-ce-80fb38de7abdfacbf5ad2e0150b934c1392721f0.tar.gz |
Remove backward compatibility of factories.
Diffstat (limited to 'spec/requests/projects_spec.rb')
-rw-r--r-- | spec/requests/projects_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/projects_spec.rb b/spec/requests/projects_spec.rb index 92e89a162af..c44bea89f96 100644 --- a/spec/requests/projects_spec.rb +++ b/spec/requests/projects_spec.rb @@ -6,7 +6,7 @@ describe "Projects" do describe 'GET /project/new' do it "should work autocomplete", :js => true do visit new_project_path - + fill_in 'project_name', with: 'Awesome' find("#project_path").value.should == 'awesome' find("#project_code").value.should == 'awesome' @@ -15,7 +15,7 @@ describe "Projects" do describe "GET /projects/show" do before do - @project = Factory :project, owner: @user + @project = create(:project, owner: @user) @project.add_access(@user, :read) visit project_path(@project) @@ -28,7 +28,7 @@ describe "Projects" do describe "GET /projects/:id/edit" do before do - @project = Factory :project + @project = create(:project) @project.add_access(@user, :admin, :read) visit edit_project_path(@project) @@ -47,7 +47,7 @@ describe "Projects" do describe "PUT /projects/:id" do before do - @project = Factory :project, owner: @user + @project = create(:project, owner: @user) @project.add_access(@user, :admin, :read) visit edit_project_path(@project) @@ -69,7 +69,7 @@ describe "Projects" do describe "DELETE /projects/:id" do before do - @project = Factory :project + @project = create(:project) @project.add_access(@user, :read, :admin) visit edit_project_path(@project) end |