Remove backward compatibility of factories.
This commit is contained in:
parent
d52f06f380
commit
80fb38de7a
54 changed files with 261 additions and 279 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue