Sha256: d049a8de79304068510082d4b7c6fb042b6e3d900707fa75ed6b8bdc2d8163ec

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

describe BrowsingHistory::Configuration do
  let(:storage_types) { %i(redis active_record) }
  let(:storage_type) { storage_types.first }

  describe '#configure' do
    it 'should have default attributes' do
      BrowsingHistory.configure do |configuration|
        expect(configuration.storage_types).to eql(storage_types)
        expect(configuration.storage_type).to eql(storage_type)
        expect(configuration.namespace).to eql('browsing_history')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browsing_history-0.0.3 spec/browsing_history/configration_spec.rb
browsing_history-0.0.2 spec/browsing_history/configration_spec.rb