summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-12-21 09:38:06 +0000
committerRémy Coutable <remy@rymai.me>2017-12-21 09:38:06 +0000
commit6df36c9d907d205ab977d5d2f81fb167e0dc969c (patch)
tree3d4b7682786a532005df732602dfd2067557fd1e /qa/qa/specs/features
parent88f41bf61f5602aeca46c31d0b7ba76827543b29 (diff)
downloadgitlab-ce-6df36c9d907d205ab977d5d2f81fb167e0dc969c.tar.gz
Add support for defining explicit dependencies to QA factories
Diffstat (limited to 'qa/qa/specs/features')
-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