Sha256: a0db7ca64bc1076e48e37d3a3171a8feeacc2b1b7bef024921b529e8b29edb67

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balboa-0.1.3 spec/balboa/interactor/interactor_wrapper_spec.rb