diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb index 24ef490b3de..7ef6903048d 100644 --- a/qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb @@ -12,10 +12,9 @@ module QA shared_examples 'project license detection' do it 'displays the name of the license on the repository' do license_path = Runtime::Path.fixture('software_licenses', license_file_name) - Resource::Repository::Commit.fabricate_via_api! do |commit| - commit.project = project - commit.add_files([{ file_path: 'LICENSE', content: File.read(license_path) }]) - end + create(:commit, project: project, actions: [ + { action: 'create', file_path: 'LICENSE', content: File.read(license_path) } + ]) project.visit! |