Sha256: 77d17f4c863b2ca574d654f0fcfb36eb69ccdbee89bdac98afc5abbe6aab7d32
Contents?: true
Size: 813 Bytes
Versions: 4
Compression:
Stored size: 813 Bytes
Contents
describe KnapsackPro::Hooks::Queue do describe '.call_after_subset_queue' do subject { described_class.call_after_subset_queue } context 'when callback is not set' do before do described_class.reset_after_subset_queue end it { should be_nil } end context 'when callback is set' do let(:queue_id) { double } let(:subset_queue_id) { double } before do expect(KnapsackPro::Config::Env).to receive(:queue_id).and_return(queue_id) expect(KnapsackPro::Config::Env).to receive(:subset_queue_id).and_return(subset_queue_id) described_class.after_subset_queue do |q_id, subset_q_id| [:fake_value, q_id, subset_q_id] end end it { should eq [:fake_value, queue_id, subset_queue_id] } end end end
Version data entries
4 entries across 4 versions & 1 rubygems