Sha256: 2e1aab340a14b2e39d882d796aebf9fd15ddca914484c79cccc8ca2a4fc04ae0

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
attachy-0.4.1 spec/models/user_spec.rb
attachy-0.4.0 spec/models/user_spec.rb
attachy-0.3.0 spec/models/user_spec.rb
attachy-0.2.0 spec/models/user_spec.rb