Sha256: da415cc2e2bcb7c6b0f9da71b9c305584380388a7a39452be9b0e5f1c4cfa891

Contents?: true

Size: 435 Bytes

Versions: 13

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'

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

    it "should be registered as Liquor partial" do
      snippet = FactoryGirl.create(:snippet)
      expect(Kms.template_manager.fetch_partial(snippet.register_id)).to_not be nil
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kms-1.2.1 spec/models/kms/snippet_spec.rb
kms-1.2.0 spec/models/kms/snippet_spec.rb
kms-1.1.0 spec/models/kms/snippet_spec.rb
kms-1.0.1 spec/models/kms/snippet_spec.rb
kms-1.0.0 spec/models/kms/snippet_spec.rb
kms-0.9.0 spec/models/kms/snippet_spec.rb
kms-0.8.0 spec/models/kms/snippet_spec.rb
kms-0.7.0 spec/models/kms/snippet_spec.rb
kms-0.6.0 spec/models/kms/snippet_spec.rb
kms-0.5.0 spec/models/kms/snippet_spec.rb
kms-0.4.2 spec/models/kms/snippet_spec.rb
kms-0.4.1 spec/models/kms/snippet_spec.rb
kms-0.4.0 spec/models/kms/snippet_spec.rb