lib/cadenero/testing_support/authentication_helpers.rb in cadenero-0.0.2.b5 vs lib/cadenero/testing_support/authentication_helpers.rb in cadenero-0.0.2.b6
- old
+ new
@@ -1,9 +1,10 @@
module Cadenero
# Helper Methods for testing
module TestingSupport
# RSpec Helper for subdomains
module AuthenticationHelpers
+ include Warden::Test::Helpers
# creates a dummy user for testing
# @return a dummy user JSON parameters for sign up
def create_user_params_json(suffix = nil)
@user = { email: "user#{suffix}@example.com", password: "password", password_confirmation: "password" }
end
\ No newline at end of file