Sha256: 39a00995f6c796ed51c1371067cf3f4477307004ac1529cae0a20ffd4b428d48

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require "support/sequel_test_support"

RSpec.shared_context "sequel persistence setup" do
  include Terrestrial::SequelTestSupport

  before { truncate_tables }

  let(:datastore) {
    db_connection.tap { |db|
      # The query_counter will let us make assertions about how efficiently
      # the database is being used
      db.loggers << query_counter
    }
  }

  let(:query_counter) {
    Terrestrial::SequelTestSupport::QueryCounter.new
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terrestrial-0.1.1 spec/support/sequel_persistence_setup.rb