Sha256: 0bf61ec85ab38d7b20fc5306ff585aef3e73126ec896b71ccc1e9243b6ed2ef6

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

require 'rails_helper'

RSpec.describe 'Configuration' do
  describe '.configure' do
    it 'yields a block with the config argument' do
      block = nil
     Userstamper.configure do |config|
        block = config
      end
      expect(block).to be(Userstamper::Configuration)
    end
  end

  describe '.config' do
    it 'matches default_stamper and default_stamper_class' do
      config = Userstamper.config
      expect(config.default_stamper_class.name).to eq(config.default_stamper)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
userstamper-4.1.0 spec/lib/configuration_spec.rb
userstamper-4.0.1 spec/lib/configuration_spec.rb
userstamper-4.0.0 spec/lib/configuration_spec.rb