diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 20:17:21 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:42 +0300 |
commit | 81061aef62e603aa122c5c3a58ca8cfd9341a59b (patch) | |
tree | 716f3344d0c824e1ea91f6d260580ff4fb299479 | |
parent | e6c7c11a5bb2656c2be997368b62aca61bb1f485 (diff) | |
download | gitlab-ce-81061aef62e603aa122c5c3a58ca8cfd9341a59b.tar.gz |
replace `has_n_stars` with `has_n_stars?`
-rw-r--r-- | features/steps/project/star.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/star.rb b/features/steps/project/star.rb index 9f7c748a3b7..2e7eb65901a 100644 --- a/features/steps/project/star.rb +++ b/features/steps/project/star.rb @@ -9,15 +9,15 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps end step "The project has 0 stars" do - has_n_stars(0) + has_n_stars?(0) end step "The project has 1 star" do - has_n_stars(1) + has_n_stars?(1) end step "The project has 2 stars" do - has_n_stars(2) + has_n_stars?(2) end # Requires @javascript @@ -31,7 +31,7 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps protected - def has_n_stars(n) + def has_n_stars?(n) expect(page).to have_css(".star-count", text: n, visible: true) end end |