Sha256: b3cfeb6248286e38f274cb7612118a0bd479a775780b1bc11e70ccf05bcdfc10
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
require 'rails_helper' RSpec.describe User do it { expect(build(:user)).to be_valid } it { is_expected.to have_many(:avatar_files).conditions(scope: :avatar).class_name(Attachy::File).dependent :destroy } it { is_expected.to have_many(:photos_files).conditions(scope: :photos).class_name(Attachy::File).dependent :destroy } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
attachy-0.1.2 | spec/models/user_spec.rb |
attachy-0.1.1 | spec/models/user_spec.rb |
attachy-0.1.0 | spec/models/user_spec.rb |