Sha256: 4a9b09c9886e3af8cd6e365135913590a223bc5853cf7572d3bfe5e497e2eaa1
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true require "rails_helper" RSpec.describe Post, type: :model do include ActiveJob::TestHelper let(:post) { build(:post) } context "when saved as new record" do it { expect { post.save! }.to have_enqueued_job(Rao::Service::Job) } it { expect { perform_enqueued_jobs { post.save! } }.to change { Cmor::Seo::Item.count }.from(0).to(1) } it { expect { perform_enqueued_jobs { post.save! } }.to change { Cmor::Seo::MetaTag.count }.from(0).to(3) } end end
Version data entries
9 entries across 9 versions & 1 rubygems