Sha256: 48c889be7cb8107be852c24e9cdd9d6a9ec13ceff18f063853c6eb99d02ef8b2

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

RSpec.describe PublishPostJob, type: :job do
  let(:post) { Post.create.decorate }

  subject(:job) { described_class.perform_later(post) }

  it 'queues the job' do
    expect { job }.to have_enqueued_job(described_class).with(post.object)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
draper-4.0.2 spec/dummy/spec/jobs/publish_post_job_spec.rb
draper-4.0.1 spec/dummy/spec/jobs/publish_post_job_spec.rb
draper-4.0.0 spec/dummy/spec/jobs/publish_post_job_spec.rb
draper-3.1.0 spec/dummy/spec/jobs/publish_post_job_spec.rb
draper-3.0.1 spec/dummy/spec/jobs/publish_post_job_spec.rb