spec/models/album_detection_photo_iterator_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Prefer have_received for setting message expectations. Setup AlbumDetector as a spy using allow or instance_spy.
Open

    expect(AlbumDetector).to(receive(:detect_albums!).exactly(5).times { [] })

Use and_return for static values.
Open

    expect(AlbumDetector).to(receive(:detect_albums!).exactly(5).times { [] })

The second argument to describe should be the method being tested. '#instance' or '.class'.
Open

describe AlbumDetectionPhotoIterator, 'run' do

Spec path should end with album_detection_photo_iterator*run*_spec.rb.
Open

describe AlbumDetectionPhotoIterator, 'run' do

There are no issues that match your filters.

Category
Status