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

Version Path
kms-1.2.1 spec/services/kms/functions_registry_spec.rb
kms-1.2.0 spec/services/kms/functions_registry_spec.rb
kms-1.1.0 spec/services/kms/functions_registry_spec.rb
kms-1.0.1 spec/services/kms/functions_registry_spec.rb
kms-1.0.0 spec/services/kms/functions_registry_spec.rb
kms-0.9.0 spec/services/kms/functions_registry_spec.rb