Sha256: 3c49ccc5866f2f79bf39210efeeaf0922457bb6897999c41a3da9e1d5c62f4f5
Contents?: true
Size: 530 Bytes
Versions: 6
Compression:
Stored size: 530 Bytes
Contents
require 'spec_helper' describe Kms::FunctionsRegistry, type: :service do it 'should contain default functions' do expect(Kms::FunctionsRegistry.modules).to contain_exactly(Liquor::Pagination, Kms::Functions::Assets, Kms::Functions::Currency) end describe '.register' do it "should register modules with liquor functions" do NewModule = Module.new { include ::Liquor::Library } Kms::FunctionsRegistry.register NewModule expect(Kms::FunctionsRegistry.modules).to include NewModule end end end
Version data entries
6 entries across 6 versions & 1 rubygems