spec/support/album_worker_behavior.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after subject.
Open

  subject(:perform) { described_class.new.perform(id) }

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

      expect(AlbumDetectionPhotoIterator).to receive(:new).

Prefer allow over expect when configuring a response.
Open

      expect(AlbumDetectionPhotoIterator).to receive(:new).

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

      expect(iterator).to receive(:run)

There are no issues that match your filters.

Category
Status