summaryrefslogtreecommitdiff
path: root/features/steps/shared/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/shared/user.rb')
-rw-r--r--features/steps/shared/user.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/shared/user.rb b/features/steps/shared/user.rb
index 209d77c7acf..fc1e8d6e889 100644
--- a/features/steps/shared/user.rb
+++ b/features/steps/shared/user.rb
@@ -2,16 +2,16 @@ module SharedUser
include Spinach::DSL
step 'User "John Doe" exists' do
- user_exists("John Doe", {username: "john_doe"})
+ user_exists("John Doe", { username: "john_doe" })
end
step 'User "Mary Jane" exists' do
- user_exists("Mary Jane", {username: "mary_jane"})
+ user_exists("Mary Jane", { username: "mary_jane" })
end
protected
def user_exists(name, options = {})
- User.find_by(name: name) || create(:user, {name: name, admin: false}.merge(options))
+ User.find_by(name: name) || create(:user, { name: name, admin: false }.merge(options))
end
end