Sha256: 0d2b46883871cf869be6ca4db5ab21cea870bd5c21ec7a478f8dfa7980442634
Contents?: true
Size: 470 Bytes
Versions: 6
Compression:
Stored size: 470 Bytes
Contents
require "test_helper" ## # Here we test: # # - Typus::Orm::ActiveRecord::AdminUserV2 # class AdminUserTest < ActiveSupport::TestCase test "token changes everytime we save the user" do admin_user = Factory(:admin_user) first_token = admin_user.token admin_user.save second_token = admin_user.token assert !first_token.eql?(second_token) end test "mass_assignment" do assert TypusUser.attr_protected[:default].include?(:status) end end
Version data entries
6 entries across 6 versions & 1 rubygems