diff options
Diffstat (limited to 'spec/factories/design_management')
-rw-r--r-- | spec/factories/design_management/designs.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories/design_management/designs.rb b/spec/factories/design_management/designs.rb index 3d95c754a96..d16fd0c297b 100644 --- a/spec/factories/design_management/designs.rb +++ b/spec/factories/design_management/designs.rb @@ -100,8 +100,9 @@ FactoryBot.define do trait :with_file do transient do deleted { false } - versions_count { 1 } file { File.join(Rails.root, 'spec/fixtures/dk.png') } + versions_count { 1 } + versions_sha { nil } end after :create do |design, evaluator| @@ -109,6 +110,8 @@ FactoryBot.define do repository = project.design_repository commit_version = ->(action) do + return evaluator.versions_sha if evaluator.versions_sha + repository.commit_files( evaluator.author, branch_name: 'master', |