Sha256: 9b8a0781dcd4738e536adcc1bf80314e65841dc6d1b7b9cb44fc2490d8ffa556
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
require 'spec_helper' describe Staticpress::Content::ResourceContent do include Staticpress::Helpers include Staticpress::Content::ResourceContent basic_blog let(:page_dir) { Staticpress.blog_path + config.source_path } describe '.find_supported_extensions' do it '...' do expect(find_supported_extensions(page_dir + 'chained.markdown.erb')).to eq([:erb, :markdown]) expect(find_supported_extensions(page_dir + 'chained.markdown')).to eq([:erb, :markdown]) expect(find_supported_extensions(page_dir + 'chained')).to eq([:erb, :markdown]) expect(find_supported_extensions(page_dir + 'about')).to eq([:markdown]) expect(find_supported_extensions(page_dir + 'plain.txt')).to eq([]) expect(find_supported_extensions(page_dir + 'i/dont/exist')).to eq([]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticpress-0.7.1 | spec/unit/staticpress/content/resource_content_spec.rb |
staticpress-0.7.0 | spec/unit/staticpress/content/resource_content_spec.rb |