spec/models/attachy/extension/user/photos_spec.rb in attachy-0.4.0 vs spec/models/attachy/extension/user/photos_spec.rb in attachy-0.4.1

- old
+ new

@@ -48,15 +48,13 @@ describe ':photo' do let!(:user) { create :user } context 'with no file' do - it 'returns empty' do - expect(user.photos).to eq [] - end + specify { expect(user.photos).to eq [] } end - context 'with file' do + context 'with files' do let!(:photo_1) { create :file, scope: :photos, attachable: user } let!(:photo_2) { create :file, scope: :photos, attachable: user } it 'returns all records' do expect(user.photos).to match_array [photo_1, photo_2]