diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-24 17:40:41 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-24 17:40:41 +0100 |
commit | cbaa33db8a77efaf6446ed294db2e334ff7de8e7 (patch) | |
tree | becf44ab2ee0baec6be8d354ee1432af6ca7eadc /features | |
parent | cb9f573818098b2fdc556db867bd9a32f469d471 (diff) | |
download | gitlab-ce-cbaa33db8a77efaf6446ed294db2e334ff7de8e7.tar.gz |
Small code improvementfix-group-member
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/groups.rb b/features/steps/groups.rb index 5086a9e0b87..7c991af4c2b 100644 --- a/features/steps/groups.rb +++ b/features/steps/groups.rb @@ -325,7 +325,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps def mary_jane_member user = User.find_by(name: "Mary Jane") - owned_group.members.where(user_id: user.id).first + owned_group.members.find_by(user_id: user.id) end def assigned_to_me(key) |