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

Version Path
disco_app-0.17.0 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.0 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.2 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.3 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.6 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.4 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb
disco_app-0.18.1 lib/generators/disco_app/install/templates/spec/support/shared_examples/a_synchronise_job.rb