Sha256: b69394d82eb081c6d59e1dca7fb74eed3f12084ca65a41bd005335f99b0643da

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

module Kms
  describe Kms::Template, type: :model do
    it "should be registered via ResourceService" do
      expect(Kms::ResourceService.resources[:content_management][Kms::Template]).to_not be_nil
    end

    it "should be registered as Liquor template" do
      template = FactoryGirl.create(:template)
      expect(Kms.template_manager.instance_variable_get("@templates")[template.register_id]).to_not be nil
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kms-1.2.1 spec/models/kms/template_spec.rb
kms-1.2.0 spec/models/kms/template_spec.rb
kms-1.1.0 spec/models/kms/template_spec.rb
kms-1.0.1 spec/models/kms/template_spec.rb
kms-1.0.0 spec/models/kms/template_spec.rb