Sha256: 682238fe141c4207dd9dd444caeacd515b0706734408d9e4f957321be0f50fd3

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

require 'spec_helper'

module SandthornDriverSequel2
	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,
        :url,
        :context,
        :driver
      ]

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

    end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sandthorn_driver_sequel_2-0.0.2 spec/driver_interface_spec.rb
sandthorn_driver_sequel_2-0.0.1 spec/driver_interface_spec.rb