diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-23 10:36:36 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-23 10:36:36 +0000 |
commit | 883438970df30ac7101d8f32b30007c4248c75d5 (patch) | |
tree | 3acd5df3b5275b373c16bc871dc1e553e00e8942 /features/steps/snippets | |
parent | a8e4e6aaba762c61d0203e023148d999f8565d34 (diff) | |
parent | 779646ef38741dd30a51f57eed8818ab946fcae6 (diff) | |
download | gitlab-ce-883438970df30ac7101d8f32b30007c4248c75d5.tar.gz |
Merge branch 'rubocop-for-tests' into 'master'
Enable rubocop for tests too
cc @DouweM @rspeicher
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
See merge request !862
Diffstat (limited to 'features/steps/snippets')
-rw-r--r-- | features/steps/snippets/snippets.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index 426da2918ea..6ff48e0c6b8 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -23,8 +23,8 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps end step 'I submit new snippet "Personal snippet three"' do - fill_in "personal_snippet_title", :with => "Personal snippet three" - fill_in "personal_snippet_file_name", :with => "my_snippet.rb" + fill_in "personal_snippet_title", with: "Personal snippet three" + fill_in "personal_snippet_file_name", with: "my_snippet.rb" page.within('.file-editor') do find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of snippet three' end @@ -32,12 +32,12 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps end step 'I submit new internal snippet' do - fill_in "personal_snippet_title", :with => "Internal personal snippet one" - fill_in "personal_snippet_file_name", :with => "my_snippet.rb" + fill_in "personal_snippet_title", with: "Internal personal snippet one" + fill_in "personal_snippet_file_name", with: "my_snippet.rb" choose 'personal_snippet_visibility_level_10' page.within('.file-editor') do - find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of internal snippet' + find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of internal snippet' end click_button "Create snippet" @@ -49,7 +49,7 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps end 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" end |