Sha256: ab67ee5502fb4b715353e4054af75d6cfb50208222af4e41dda80ed927ec828f

Contents?: true

Size: 711 Bytes

Versions: 4

Compression:

Stored size: 711 Bytes

Contents

require 'unit_spec_helper'

module Shoulda::Matchers
  describe Doublespeak do
    describe '.double_collection_for' do
      it 'delegates to its world' do
        allow(Doublespeak.world).to receive(:double_collection_for)

        described_class.double_collection_for(:klass)

        expect(Doublespeak.world).
          to have_received(:double_collection_for).
          with(:klass)
      end
    end

    describe '.with_doubles_activated' do
      it 'delegates to its world' do
        allow(Doublespeak.world).to receive(:with_doubles_activated)

        described_class.with_doubles_activated

        expect(Doublespeak.world).to have_received(:with_doubles_activated)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-2.8.0 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-2.8.0.rc2 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-2.8.0.rc1 spec/unit/shoulda/matchers/doublespeak_spec.rb