summaryrefslogtreecommitdiff
path: root/features/steps/snippets
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
commit4d56c359d343ba3a1117dfc06034820a415450d3 (patch)
tree40232c2176dc8f46e7ab96de0bd45c1bc2934173 /features/steps/snippets
parent1018cbdc803d56e6cae385aee97aa04752d3e3fb (diff)
parenta3f645ef51ec12ce93934b4ddb11313613d8c451 (diff)
downloadgitlab-ce-4d56c359d343ba3a1117dfc06034820a415450d3.tar.gz
Merge pull request #6075 from skv-headless/remove_deprecated_finders
Remove deprecated finders
Diffstat (limited to 'features/steps/snippets')
-rw-r--r--features/steps/snippets/discover_snippets.rb2
-rw-r--r--features/steps/snippets/snippets.rb2
-rw-r--r--features/steps/snippets/user_snippets.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/snippets/discover_snippets.rb b/features/steps/snippets/discover_snippets.rb
index 3afe019adf6..09337937002 100644
--- a/features/steps/snippets/discover_snippets.rb
+++ b/features/steps/snippets/discover_snippets.rb
@@ -12,6 +12,6 @@ class DiscoverSnippets < Spinach::FeatureSteps
end
def snippet
- @snippet ||= PersonalSnippet.find_by_title!("Personal snippet one")
+ @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
end
end
diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb
index 1aea01f6cdf..fed54659ebc 100644
--- a/features/steps/snippets/snippets.rb
+++ b/features/steps/snippets/snippets.rb
@@ -59,6 +59,6 @@ class SnippetsFeature < Spinach::FeatureSteps
end
def snippet
- @snippet ||= PersonalSnippet.find_by_title!("Personal snippet one")
+ @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
end
end
diff --git a/features/steps/snippets/user_snippets.rb b/features/steps/snippets/user_snippets.rb
index 15d6da6db3d..2d7ffc866e7 100644
--- a/features/steps/snippets/user_snippets.rb
+++ b/features/steps/snippets/user_snippets.rb
@@ -36,6 +36,6 @@ class UserSnippets < Spinach::FeatureSteps
end
def snippet
- @snippet ||= PersonalSnippet.find_by_title!("Personal snippet one")
+ @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
end
end