Commit cbaa33db authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Small code improvement

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent cb9f5738
...@@ -325,7 +325,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps ...@@ -325,7 +325,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
def mary_jane_member def mary_jane_member
user = User.find_by(name: "Mary Jane") 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 end
def assigned_to_me(key) def assigned_to_me(key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment