Sha256: afaaf5444873457969ff8be6c717802b5fd8d854aa79f45ea546383bfc50be74
Contents?: true
Size: 817 Bytes
Versions: 3
Compression:
Stored size: 817 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Balboa::Interactor::InteractorWrapper do it 'forwards punch call to its dependency' do today = Date.today interactor = double allow(interactor).to receive(:punch).with(today) described_class.new(interactor).punch(today) expect(interactor).to have_received(:punch).with(today).once end it 'forwards last call to its dependency' do interactor = double allow(interactor).to receive(:last) described_class.new(interactor).last expect(interactor).to have_received(:last).once end it 'forwards options call to its dependency' do interactor = double allow(interactor).to receive(:options) described_class.new(interactor).options expect(interactor).to have_received(:options).once end end
Version data entries
3 entries across 3 versions & 1 rubygems