Sha256: 63b9a9803d5cf768a1a3aa17364093a3b2c4e7b6d19e63f387bcd714402ee58b
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
require 'rails_helper' RSpec.describe 'Configuration' do describe '.configure' do it 'yields a block with the config argument' do block = nil ActiveRecord::Userstamp.configure do |config| block = config end expect(block).to be(ActiveRecord::Userstamp::Configuration) end end describe '.config' do it 'matches default_stamper and default_stamper_class' do config = ActiveRecord::Userstamp.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 |
---|---|
activerecord-userstamp-3.0.2 | spec/lib/configuration_spec.rb |
activerecord-userstamp-3.0.1 | spec/lib/configuration_spec.rb |
activerecord-userstamp-3.0.0 | spec/lib/configuration_spec.rb |