Sha256: a9de3abe4868afba918a0d965528b36039caffa138a21daf9659c83e10c8d261

Contents?: true

Size: 718 Bytes

Versions: 8

Compression:

Stored size: 718 Bytes

Contents

require 'doublespeak_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

8 entries across 8 versions & 1 rubygems

Version Path
shoulda-matchers-3.1.3 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-4.0.0.rc1 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.1.2 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.1.1 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.1.0 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.0.1 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.0.0 spec/unit/shoulda/matchers/doublespeak_spec.rb
shoulda-matchers-3.0.0.rc1 spec/unit/shoulda/matchers/doublespeak_spec.rb