Sha256: cf64f5130b3d98781124fd1c76558fbb989fd772b80693690c6c36b7f2e241cd
Contents?: true
Size: 530 Bytes
Versions: 23
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Praxis::Notifications do let(:events) { [] } before do Praxis::Notifications.subscribe('render') do |_name, _start, _finish, _id, payload| events << payload end Praxis::Notifications.instrument('render', extra: :information) do end Praxis::Notifications.instrument('render', extra: :single) end it 'works' do expect(events).to have(2).items expect(events).to match [{ extra: :information }, { extra: :single }] end end
Version data entries
23 entries across 23 versions & 1 rubygems