Sha256: 8b4ec77cab713ae1a2bc8b15899e3e70e32f468438715ad615c744eaa67f01cc

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

require 'spec_helper'

module SandthornDriverSequel
  describe EventStore do
    before(:each) { prepare_for_test }
    context "interface structure" do
      let(:subject) { event_store }
      methods = [
        :save_events,
        :save_snapshot,
        :get_aggregate_events_from_snapshot,
        :get_aggregate,
        :get_aggregate_events,
        :get_aggregate_ids,
        :get_all_types,
        :get_snapshot,
        :get_events,
        :context,
        :driver,
        :all,
        :find
      ]

      methods.each do |method|
        it "responds to #{method}" do
          expect(subject).to respond_to(method)
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sandthorn_driver_sequel-3.2.1 spec/driver_interface_spec.rb
sandthorn_driver_sequel-3.2.0 spec/driver_interface_spec.rb
sandthorn_driver_sequel-3.1.0 spec/driver_interface_spec.rb