Sha256: 0883f55666a28011a59727699a61fb9d232a413cd5a7ebd17253a226f2bb18ed
Contents?: true
Size: 318 Bytes
Versions: 7
Compression:
Stored size: 318 Bytes
Contents
RSpec.shared_examples :a_synchronise_job do |model| subject(:job) { described_class.perform_later(shop, data) } let(:shop) { create(:shop) } let(:data) { 'data' } it "synchronises #{model}" do expect(model).to receive(:synchronise).with(shop, data, any_args) perform_enqueued_jobs { job } end end
Version data entries
7 entries across 7 versions & 1 rubygems