spec/repositories/collection_repository_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'rails_helper'

describe CollectionRepository do
  subject(:repository) { described_class.new }

  it_behaves_like 'a repository'

  describe '.klass' do
    subject(:klass) { described_class.klass }

    it { is_expected.to eq(Collection) }
  end

  it 'uses the collections index namespace' do
    expect(repository.index_name).to eq('test-i14y-collections')
  end
end