diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 06:59:03 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 06:59:03 -0700 |
commit | af5d0e9e92f3fb818c73f1b8b991ea61ddc35dd4 (patch) | |
tree | 2695e4d262df1fdfc213a2c73fbee76f0b5e05be /features | |
parent | dc41ffa309fee7697693cfaea42486707d98f5f0 (diff) | |
parent | a50d96a84149c34c85f9f02cacfd2d15582c8eff (diff) | |
download | gitlab-ce-af5d0e9e92f3fb818c73f1b8b991ea61ddc35dd4.tar.gz |
Merge pull request #3275 from Undev/feature/code_cleanup_remove_old_hashes
Code cleanup: Replace old hashes and remove trailing spaces
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/admin/admin_groups.rb | 10 | ||||
-rw-r--r-- | features/steps/group/group.rb | 6 | ||||
-rw-r--r-- | features/steps/profile/profile.rb | 10 | ||||
-rw-r--r-- | features/steps/profile/profile_ssh_keys.rb | 6 | ||||
-rw-r--r-- | features/steps/project/project_browse_branches.rb | 2 | ||||
-rw-r--r-- | features/steps/project/project_browse_commits.rb | 6 | ||||
-rw-r--r-- | features/steps/project/project_issues.rb | 22 | ||||
-rw-r--r-- | features/steps/project/project_merge_requests.rb | 6 | ||||
-rw-r--r-- | features/steps/project/project_milestones.rb | 6 | ||||
-rw-r--r-- | features/steps/project/project_network_graph.rb | 12 | ||||
-rw-r--r-- | features/steps/project/project_wiki.rb | 4 |
11 files changed, 45 insertions, 45 deletions
diff --git a/features/steps/admin/admin_groups.rb b/features/steps/admin/admin_groups.rb index 167763b6912..a2b49070f9f 100644 --- a/features/steps/admin/admin_groups.rb +++ b/features/steps/admin/admin_groups.rb @@ -20,12 +20,12 @@ class AdminGroups < Spinach::FeatureSteps end And 'Create gitlab user "John"' do - create(:user, :name => "John") + create(:user, name: "John") end And 'submit form with new group info' do - fill_in 'group_name', :with => 'gitlab' - fill_in 'group_description', :with => 'Group description' + fill_in 'group_name', with: 'gitlab' + fill_in 'group_description', with: 'Group description' click_button "Create group" end @@ -41,8 +41,8 @@ class AdminGroups < Spinach::FeatureSteps When 'I select user "John" from user list as "Reporter"' do user = User.find_by_name("John") within "#new_team_member" do - select user.name, :from => "user_ids" - select "Reporter", :from => "project_access" + select user.name, from: "user_ids" + select "Reporter", from: "project_access" end click_button "Add user to projects in group" end diff --git a/features/steps/group/group.rb b/features/steps/group/group.rb index 5ac958e3fc2..8b5a4ed44df 100644 --- a/features/steps/group/group.rb +++ b/features/steps/group/group.rb @@ -39,8 +39,8 @@ class Groups < Spinach::FeatureSteps And 'I select user "John" from list with role "Reporter"' do user = User.find_by_name("John") within "#new_team_member" do - select user.name, :from => "user_ids" - select "Reporter", :from => "project_access" + select user.name, from: "user_ids" + select "Reporter", from: "project_access" end click_button "Add" end @@ -85,7 +85,7 @@ class Groups < Spinach::FeatureSteps end And 'I change group name' do - fill_in 'group_name', :with => 'new-name' + fill_in 'group_name', with: 'new-name' click_button "Save group" end diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index a02ed057d9d..8981705df48 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -9,9 +9,9 @@ class Profile < Spinach::FeatureSteps end Then 'I change my contact info' do - fill_in "user_skype", :with => "testskype" - fill_in "user_linkedin", :with => "testlinkedin" - fill_in "user_twitter", :with => "testtwitter" + fill_in "user_skype", with: "testskype" + fill_in "user_linkedin", with: "testlinkedin" + fill_in "user_twitter", with: "testtwitter" click_button "Save" @user.reload end @@ -24,8 +24,8 @@ class Profile < Spinach::FeatureSteps Then 'I change my password' do within '.update-password' do - fill_in "user_password", :with => "222333" - fill_in "user_password_confirmation", :with => "222333" + fill_in "user_password", with: "222333" + fill_in "user_password_confirmation", with: "222333" click_button "Save" end end diff --git a/features/steps/profile/profile_ssh_keys.rb b/features/steps/profile/profile_ssh_keys.rb index fbb92077f0a..a280ce6f89c 100644 --- a/features/steps/profile/profile_ssh_keys.rb +++ b/features/steps/profile/profile_ssh_keys.rb @@ -12,8 +12,8 @@ class ProfileSshKeys < Spinach::FeatureSteps end And 'I submit new ssh key "Laptop"' do - fill_in "key_title", :with => "Laptop" - fill_in "key_key", :with => "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzrEJUIR6Y03TCE9rIJ+GqTBvgb8t1jI9h5UBzCLuK4VawOmkLornPqLDrGbm6tcwM/wBrrLvVOqi2HwmkKEIecVO0a64A4rIYScVsXIniHRS6w5twyn1MD3sIbN+socBDcaldECQa2u1dI3tnNVcs8wi77fiRe7RSxePsJceGoheRQgC8AZ510UdIlO+9rjIHUdVN7LLyz512auAfYsgx1OfablkQ/XJcdEwDNgi9imI6nAXhmoKUm1IPLT2yKajTIC64AjLOnE0YyCh6+7RFMpiMyu1qiOCpdjYwTgBRiciNRZCH8xIedyCoAmiUgkUT40XYHwLuwiPJICpkAzp7Q== user@laptop" + fill_in "key_title", with: "Laptop" + fill_in "key_key", with: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzrEJUIR6Y03TCE9rIJ+GqTBvgb8t1jI9h5UBzCLuK4VawOmkLornPqLDrGbm6tcwM/wBrrLvVOqi2HwmkKEIecVO0a64A4rIYScVsXIniHRS6w5twyn1MD3sIbN+socBDcaldECQa2u1dI3tnNVcs8wi77fiRe7RSxePsJceGoheRQgC8AZ510UdIlO+9rjIHUdVN7LLyz512auAfYsgx1OfablkQ/XJcdEwDNgi9imI6nAXhmoKUm1IPLT2yKajTIC64AjLOnE0YyCh6+7RFMpiMyu1qiOCpdjYwTgBRiciNRZCH8xIedyCoAmiUgkUT40XYHwLuwiPJICpkAzp7Q== user@laptop" click_button "Save" end @@ -43,6 +43,6 @@ class ProfileSshKeys < Spinach::FeatureSteps end And 'I have ssh key "ssh-rsa Work"' do - create(:key, :user => @user, :title => "ssh-rsa Work", :key => "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+L3TbFegm3k8QjejSwemk4HhlRh+DuN679Pc5ckqE/MPhVtE/+kZQDYCTB284GiT2aIoGzmZ8ee9TkaoejAsBwlA+Wz2Q3vhz65X6sMgalRwpdJx8kSEUYV8ZPV3MZvPo8KdNg993o4jL6G36GDW4BPIyO6FPZhfsawdf6liVD0Xo5kibIK7B9VoE178cdLQtLpS2YolRwf5yy6XR6hbbBGQR+6xrGOdP16eGZDb1CE2bMvvJijjloFqPscGktWOqW+nfh5txwFfBzlfARDTBsS8WZtg3Yoj1kn33kPsWRlgHfNutFRAIynDuDdQzQq8tTtVwm+Yi75RfcPHW8y3P Work") + create(:key, user: @user, title: "ssh-rsa Work", key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+L3TbFegm3k8QjejSwemk4HhlRh+DuN679Pc5ckqE/MPhVtE/+kZQDYCTB284GiT2aIoGzmZ8ee9TkaoejAsBwlA+Wz2Q3vhz65X6sMgalRwpdJx8kSEUYV8ZPV3MZvPo8KdNg993o4jL6G36GDW4BPIyO6FPZhfsawdf6liVD0Xo5kibIK7B9VoE178cdLQtLpS2YolRwf5yy6XR6hbbBGQR+6xrGOdP16eGZDb1CE2bMvvJijjloFqPscGktWOqW+nfh5txwFfBzlfARDTBsS8WZtg3Yoj1kn33kPsWRlgHfNutFRAIynDuDdQzQq8tTtVwm+Yi75RfcPHW8y3P Work") end end diff --git a/features/steps/project/project_browse_branches.rb b/features/steps/project/project_browse_branches.rb index 2f6e185deea..24939d2ab4f 100644 --- a/features/steps/project/project_browse_branches.rb +++ b/features/steps/project/project_browse_branches.rb @@ -30,6 +30,6 @@ class ProjectBrowseBranches < Spinach::FeatureSteps And 'project "Shop" has protected branches' do project = Project.find_by_name("Shop") - project.protected_branches.create(:name => "stable") + project.protected_branches.create(name: "stable") end end diff --git a/features/steps/project/project_browse_commits.rb b/features/steps/project/project_browse_commits.rb index fb26d41f43e..95d30727405 100644 --- a/features/steps/project/project_browse_commits.rb +++ b/features/steps/project/project_browse_commits.rb @@ -17,9 +17,9 @@ class ProjectBrowseCommits < Spinach::FeatureSteps Then 'I see commits atom feed' do commit = @project.repository.commit page.response_headers['Content-Type'].should have_content("application/atom+xml") - page.body.should have_selector("title", :text => "Recent commits to #{@project.name}") - page.body.should have_selector("author email", :text => commit.author_email) - page.body.should have_selector("entry summary", :text => commit.description) + page.body.should have_selector("title", text: "Recent commits to #{@project.name}") + page.body.should have_selector("author email", text: commit.author_email) + page.body.should have_selector("entry summary", text: commit.description) end Given 'I click on commit link' do diff --git a/features/steps/project/project_issues.rb b/features/steps/project/project_issues.rb index 7d54009988f..6c18177498f 100644 --- a/features/steps/project/project_issues.rb +++ b/features/steps/project/project_issues.rb @@ -41,7 +41,7 @@ class ProjectIssues < Spinach::FeatureSteps end And 'I submit new issue "500 error on profile"' do - fill_in "issue_title", :with => "500 error on profile" + fill_in "issue_title", with: "500 error on profile" click_button "Submit new issue" end @@ -78,16 +78,16 @@ class ProjectIssues < Spinach::FeatureSteps Given 'project "Shop" has milestone "v2.2"' do project = Project.find_by_name("Shop") - milestone = create(:milestone, :title => "v2.2", :project => project) + milestone = create(:milestone, title: "v2.2", project: project) - 3.times { create(:issue, :project => project, :milestone => milestone) } + 3.times { create(:issue, project: project, milestone: milestone) } end And 'project "Shop" has milestone "v3.0"' do project = Project.find_by_name("Shop") - milestone = create(:milestone, :title => "v3.0", :project => project) + milestone = create(:milestone, title: "v3.0", project: project) - 3.times { create(:issue, :project => project, :milestone => milestone) } + 3.times { create(:issue, project: project, milestone: milestone) } end When 'I select milestone "v3.0"' do @@ -115,16 +115,16 @@ class ProjectIssues < Spinach::FeatureSteps And 'project "Shop" have "Release 0.4" open issue' do project = Project.find_by_name("Shop") create(:issue, - :title => "Release 0.4", - :project => project, - :author => project.users.first) + title: "Release 0.4", + project: project, + author: project.users.first) end And 'project "Shop" have "Release 0.3" closed issue' do project = Project.find_by_name("Shop") create(:closed_issue, - :title => "Release 0.3", - :project => project, - :author => project.users.first) + title: "Release 0.3", + project: project, + author: project.users.first) end end diff --git a/features/steps/project/project_merge_requests.rb b/features/steps/project/project_merge_requests.rb index fa7666bcbb6..6a2f870e276 100644 --- a/features/steps/project/project_merge_requests.rb +++ b/features/steps/project/project_merge_requests.rb @@ -56,9 +56,9 @@ class ProjectMergeRequests < Spinach::FeatureSteps end And 'I submit new merge request "Wiki Feature"' do - fill_in "merge_request_title", :with => "Wiki Feature" - select "master", :from => "merge_request_source_branch" - select "stable", :from => "merge_request_target_branch" + fill_in "merge_request_title", with: "Wiki Feature" + select "master", from: "merge_request_source_branch" + select "stable", from: "merge_request_target_branch" click_button "Submit merge request" end diff --git a/features/steps/project/project_milestones.rb b/features/steps/project/project_milestones.rb index 1350938ee9a..fcd590fcab2 100644 --- a/features/steps/project/project_milestones.rb +++ b/features/steps/project/project_milestones.rb @@ -19,7 +19,7 @@ class ProjectMilestones < Spinach::FeatureSteps end And 'I submit new milestone "v2.3"' do - fill_in "milestone_title", :with => "v2.3" + fill_in "milestone_title", with: "v2.3" click_button "Create milestone" end @@ -32,9 +32,9 @@ class ProjectMilestones < Spinach::FeatureSteps And 'project "Shop" has milestone "v2.2"' do project = Project.find_by_name("Shop") - milestone = create(:milestone, :title => "v2.2", :project => project) + milestone = create(:milestone, title: "v2.2", project: project) - 3.times { create(:issue, :project => project, :milestone => milestone) } + 3.times { create(:issue, project: project, milestone: milestone) } end Given 'the milestone has open and closed issues' do diff --git a/features/steps/project/project_network_graph.rb b/features/steps/project/project_network_graph.rb index 763b4de2abc..8db6a39e99f 100644 --- a/features/steps/project/project_network_graph.rb +++ b/features/steps/project/project_network_graph.rb @@ -16,7 +16,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps end And 'page should select "master" in select box' do - page.should have_selector '#ref_chzn span', :text => "master" + page.should have_selector '#ref_chzn span', text: "master" end And 'page should have "master" on graph' do @@ -26,21 +26,21 @@ class ProjectNetworkGraph < Spinach::FeatureSteps end When 'I switch ref to "stable"' do - page.select 'stable', :from => 'ref' + page.select 'stable', from: 'ref' sleep 2 end When 'I switch ref to "v2.1.0"' do - page.select 'v2.1.0', :from => 'ref' + page.select 'v2.1.0', from: 'ref' sleep 2 end And 'page should select "stable" in select box' do - page.should have_selector '#ref_chzn span', :text => "stable" + page.should have_selector '#ref_chzn span', text: "stable" end And 'page should select "v2.1.0" in select box' do - page.should have_selector '#ref_chzn span', :text => "v2.1.0" + page.should have_selector '#ref_chzn span', text: "v2.1.0" end And 'page should have "stable" on graph' do @@ -51,7 +51,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps When 'I looking for a commit by SHA of "v2.1.0"' do within ".content .search" do - fill_in 'q', :with => '98d6492' + fill_in 'q', with: '98d6492' find('button').click end sleep 2 diff --git a/features/steps/project/project_wiki.rb b/features/steps/project/project_wiki.rb index 745e9ede249..4c92d5672f7 100644 --- a/features/steps/project/project_wiki.rb +++ b/features/steps/project/project_wiki.rb @@ -16,7 +16,7 @@ class ProjectWiki < Spinach::FeatureSteps end Given 'I create the Wiki Home page' do - fill_in "Content", :with => '[link test](test)' + fill_in "Content", with: '[link test](test)' click_on "Save" end @@ -42,7 +42,7 @@ class ProjectWiki < Spinach::FeatureSteps end And 'I change the content' do - fill_in "Content", :with => 'Updated Wiki Content' + fill_in "Content", with: 'Updated Wiki Content' click_on "Save" end |