Sha256: 5adc5378a6c273c7283f92f1d54e08dc02e496631655a68998ed0424a5eadd76
Contents?: true
Size: 665 Bytes
Versions: 6
Compression:
Stored size: 665 Bytes
Contents
require 'rails_helper' module BloomRemit module Txns module Operations RSpec.describe Update, cleaning_strategy: :truncation do let(:user) { create(:bloom_remit_dummy_user) } let(:txn) { create(:bloom_remit_txn, sender: user) } it "creates the txn, and triggers BloomRemit.on_txn_update" do op = described_class. (id: txn.id, secret: txn.secret, status: "paid") txn = op.model expect(txn.status).to eq "paid" expect(OnUpdateJob).to have_enqueued_job(txn.id, { status: "paid", secret: txn.secret, }) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems