summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/repository/push_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/repository/push_spec.rb')
-rw-r--r--qa/qa/specs/features/repository/push_spec.rb15
1 files changed, 5 insertions, 10 deletions
diff --git a/qa/qa/specs/features/repository/push_spec.rb b/qa/qa/specs/features/repository/push_spec.rb
index e47c769b015..4f6ffe14c9f 100644
--- a/qa/qa/specs/features/repository/push_spec.rb
+++ b/qa/qa/specs/features/repository/push_spec.rb
@@ -5,15 +5,10 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
- Factory::Resource::Project.fabricate! do |scenario|
- scenario.name = 'project_with_code'
- scenario.description = 'project with repository'
- end
-
- Factory::Repository::Push.fabricate! do |scenario|
- scenario.file_name = 'README.md'
- scenario.file_content = '# This is test project'
- scenario.commit_message = 'Add README.md'
+ Factory::Repository::Push.fabricate! do |push|
+ push.file_name = 'README.md'
+ push.file_content = '# This is a test project'
+ push.commit_message = 'Add README.md'
end
Page::Project::Show.act do
@@ -22,7 +17,7 @@ module QA
end
expect(page).to have_content('README.md')
- expect(page).to have_content('This is test project')
+ expect(page).to have_content('This is a test project')
end
end
end