From cbaa33db8a77efaf6446ed294db2e334ff7de8e7 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Tue, 24 Nov 2015 17:40:41 +0100
Subject: [PATCH] Small code improvement

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
---
 features/steps/groups.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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