This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
describe Model do | |
# Lazily loaded to ensure it's only used when it's needed | |
# Try to avoid @instance_variables if possible. They're slow. | |
let(:factory_instance) { build(:some_factory) } | |
describe 'ActiveRecord validations' do |