Small code improvement

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-11-24 17:40:41 +01:00
parent cb9f573818
commit cbaa33db8a
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 1 deletions

View File

@ -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)