lib/facemock/config.rb in facemock-0.0.9 vs lib/facemock/config.rb in facemock-0.0.10

- old
+ new

@@ -39,11 +39,13 @@ # Create application and user record app = Facemock::Application.create!({ id: app_id, secret: app_secret }) users.each do |options| user = Facemock::User.new(options) - user.application_id = app.id - user.save! + unless Facemock::User.find_by_id(user.id) + user.application_id = app.id + user.save! + end end end end private