retrospring/spec/workers/send_to_inbox_job_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
470 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rails_helper"
describe SendToInboxJob do
describe "#perform" do
let(:user) { FactoryBot.create(:user) }
let(:user_id) { user.id }
let(:content) { Faker::Lorem.sentence }
2024-09-04 22:43:13 +02:00
let(:question_id) { 621 }
let(:follower) { FactoryBot.create(:user) }
let(:follower_id) { follower.id }
subject { described_class.new.perform(follower_id, question_id) }
2024-09-04 22:43:13 +02:00
it "does nothing" do
subject
end
end
end