Fix rubocop issues at feature/ directory

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-06-22 14:21:34 +02:00
parent 770eba73d4
commit f167f37e5a
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
9 changed files with 35 additions and 37 deletions

View File

@ -145,4 +145,3 @@ class Spinach::Features::ExploreProjects < Spinach::FeatureSteps
@public_merge_request ||= MergeRequest.find_by!(title: 'Bug fix for public project') @public_merge_request ||= MergeRequest.find_by!(title: 'Bug fix for public project')
end end
end end

View File

@ -52,8 +52,8 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end end
step 'I submit new snippet "Snippet three"' do step 'I submit new snippet "Snippet three"' do
fill_in "project_snippet_title", :with => "Snippet three" fill_in "project_snippet_title", with: "Snippet three"
fill_in "project_snippet_file_name", :with => "my_snippet.rb" fill_in "project_snippet_file_name", with: "my_snippet.rb"
page.within('.file-editor') do page.within('.file-editor') do
find(:xpath, "//input[@id='project_snippet_content']").set 'Content of snippet three' find(:xpath, "//input[@id='project_snippet_content']").set 'Content of snippet three'
end end
@ -66,7 +66,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end end
step 'I submit new title "Snippet new title"' do step 'I submit new title "Snippet new title"' do
fill_in "project_snippet_title", :with => "Snippet new title" fill_in "project_snippet_title", with: "Snippet new title"
click_button "Save" click_button "Save"
end end

View File

@ -9,4 +9,3 @@ module SharedAdmin
2.times { create(:user) } 2.times { create(:user) }
end end
end end

View File

@ -23,8 +23,8 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end end
step 'I submit new snippet "Personal snippet three"' do step 'I submit new snippet "Personal snippet three"' do
fill_in "personal_snippet_title", :with => "Personal snippet three" fill_in "personal_snippet_title", with: "Personal snippet three"
fill_in "personal_snippet_file_name", :with => "my_snippet.rb" fill_in "personal_snippet_file_name", with: "my_snippet.rb"
page.within('.file-editor') do page.within('.file-editor') do
find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of snippet three' find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of snippet three'
end end
@ -32,8 +32,8 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end end
step 'I submit new internal snippet' do step 'I submit new internal snippet' do
fill_in "personal_snippet_title", :with => "Internal personal snippet one" fill_in "personal_snippet_title", with: "Internal personal snippet one"
fill_in "personal_snippet_file_name", :with => "my_snippet.rb" fill_in "personal_snippet_file_name", with: "my_snippet.rb"
choose 'personal_snippet_visibility_level_10' choose 'personal_snippet_visibility_level_10'
page.within('.file-editor') do page.within('.file-editor') do
@ -49,7 +49,7 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end end
step 'I submit new title "Personal snippet new title"' do step 'I submit new title "Personal snippet new title"' do
fill_in "personal_snippet_title", :with => "Personal snippet new title" fill_in "personal_snippet_title", with: "Personal snippet new title"
click_button "Save" click_button "Save"
end end