Sha256: 4215f1474d641d678593b8dedcb72b6958938a19e9e61fa4fee5ca7829dd9563

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

require "spec_helper"

RSpec.describe Pokeedex::Database do
  let(:config) { Pokeedex::Configuration.new }

  describe ".connect" do
    subject { described_class.connect(config) }

    it "returns a Sequel::SQLite::Database instance" do
      is_expected.to be_instance_of(Sequel::SQLite::Database)
    end
  end

  describe ".connection" do
    subject { described_class.connection }

    it "returns a Sequel::SQLite::Database instance" do
      is_expected.to be_instance_of(Sequel::SQLite::Database)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pokeedex-0.1.5 spec/pokeedex/database_spec.rb
pokeedex-0.1.0 spec/pokeedex/database_spec.rb