lib/cm_quiz/factory/user.rb in cm_quiz-0.0.2 vs lib/cm_quiz/factory/user.rb in cm_quiz-0.0.3
- old
+ new
@@ -20,9 +20,11 @@
}
res = @project_api.request(:post, '/users', options)
payload = JSON.parse(res.body)
[payload['jwt'], payload['refresh_token']]
+ rescue => e
+ raise StandardError, "Create test user failed, reason: #{e.message}"
end
end
end
end