diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-17 07:09:57 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-18 00:02:08 +0300 |
commit | 822bf2f91c536870848df7b6f333d81fe7c89ead (patch) | |
tree | 8f8327088848b6ed08031d15ad7e6971540d01e0 /features/steps/project/fork.rb | |
parent | a8b4ab9da4b8d6338ab035c24f0be3d1dea556bb (diff) |
Add the `:repository` trait to `:project` factories in Cucumber steps
Diffstat (limited to 'features/steps/project/fork.rb')
-rw-r--r-- | features/steps/project/fork.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/project/fork.rb b/features/steps/project/fork.rb index 70dbd030003..9a6c04fba7a 100644 --- a/features/steps/project/fork.rb +++ b/features/steps/project/fork.rb @@ -9,7 +9,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps end step 'I am a member of project "Shop"' do - @project = create(:project, name: "Shop") + @project = create(:project, :repository, name: "Shop") @project.team << [@user, :reporter] end @@ -18,7 +18,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps end step 'I already have a project named "Shop" in my namespace' do - @my_project = create(:project, name: "Shop", namespace: current_user.namespace) + @my_project = create(:project, :repository, name: "Shop", namespace: current_user.namespace) end step 'I should see a "Name has already been taken" warning' do |