Sha256: 82d599a36fea252ced9e57097d6168ea1d7323f0c13a9bff960a554c9288b8d7

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

RSpec.describe Transcript::Job, type: :job do
  it "queues in the default queue" do
    expect(Transcript::Job.queue_name).to eq("default")
  end

  it "creates an audit entry for the given objects" do
    user = create(:user)
    post = create(:post)

    expect {
      Transcript::Job.perform_now(user, post, "edit")
    }.to change(AuditEntry, :count).by(1)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transcript-0.2.1 spec/transcript/job_spec.rb
transcript-0.2.0 spec/transcript/job_spec.rb
transcript-0.1.0 spec/transcript/job_spec.rb