first_name: Admin
last_name: User
admin: true
- encrypted_password: <%= BCrypt::Password.create('password123') %>
+ encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current - 1.month %>
support_type: ongoing
subscription_status: active
first_name: Regular
last_name: User
admin: false
- encrypted_password: <%= BCrypt::Password.create('password123') %>
+ encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current - 2.weeks %>
support_type: non_financial
subscription_status:
first_name: Paid
last_name: User
admin: false
- encrypted_password: <%= BCrypt::Password.create('password123') %>
+ encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current - 1.week %>
support_type: one_time
subscription_status: one_time
ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
require "rails/test_help"
+require 'devise' # Add this line
module ActiveSupport
class TestCase