Remove backward compatibility of factories.
This commit is contained in:
parent
d52f06f380
commit
80fb38de7a
54 changed files with 261 additions and 279 deletions
|
@ -1,7 +1,7 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Projects", "DeployKeys" do
|
||||
let(:project) { Factory :project }
|
||||
let(:project) { create(:project) }
|
||||
|
||||
before do
|
||||
login_as :user
|
||||
|
@ -10,7 +10,7 @@ describe "Projects", "DeployKeys" do
|
|||
|
||||
describe "GET /keys" do
|
||||
before do
|
||||
@key = Factory :key, project: project
|
||||
@key = create(:key, project: project)
|
||||
visit project_deploy_keys_path(project)
|
||||
end
|
||||
|
||||
|
@ -57,7 +57,7 @@ describe "Projects", "DeployKeys" do
|
|||
|
||||
describe "Show page" do
|
||||
before do
|
||||
@key = Factory :key, project: project
|
||||
@key = create(:key, project: project)
|
||||
visit project_deploy_key_path(project, @key)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue