# frozen_string_literal: true

require "spec_helper"

RSpec.describe Dynamodb do
  it "has a version number" do
    expect(Dynamodb::VERSION).to eq "0.5.2"
  end

  describe ".configure" do
    before do
      Dynamodb.configure do |config|
        config.client_config = { stub_responses: true }
      end
    end

    it "returns the correct client settings" do
      dynamodb = Dynamodb.configuration.client_config

      expect(dynamodb).to eq({ stub_responses: true })
    end
  end
end
