Sha256: b4226e1d8e1c39d31fed9a92a2c47c1463ccc207ec37a97f451cda98555f3ae4
Contents?: true
Size: 384 Bytes
Versions: 12
Compression:
Stored size: 384 Bytes
Contents
# Common matchers for controller specs RSpec::Matchers.define :listen_to do |use_case| match do |listener| expect(use_case).to receive(:subscribe).with(listener, prefix: :on).once end end RSpec::Matchers.define :run_after_subscriptions do match do |use_case| expect(use_case).to receive(:subscribe).ordered expect(use_case).to receive(:run).once.ordered end end
Version data entries
12 entries across 12 versions & 2 rubygems