Sha256: 8c0e169517607393c2fbad1876e1b1bd1dcef13d29671b71387dba1e66d75340

Contents?: true

Size: 745 Bytes

Versions: 25

Compression:

Stored size: 745 Bytes

Contents

require 'spec_helper'

describe RevealCK do
  describe '.path' do
    it 'provides the location of any file stored within the gem' do
      index_html_erb =
        RevealCK.path('files',
                      'reveal-ck',
                      'templates',
                      'index.html',
                      'index.html.erb')
      content = File.open(index_html_erb).read
      expect(content).to be_a String
    end
  end

  describe '.template_path' do
    it 'provides the location of templates within the gem' do
      index_html_erb =
        RevealCK.template_path('index.html',
                               'index.html.erb')
      content = File.open(index_html_erb).read
      expect(content).to be_a String
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck_spec.rb
reveal-ck-3.0.1 spec/lib/reveal-ck_spec.rb
reveal-ck-3.0.0 spec/lib/reveal-ck_spec.rb
reveal-ck-0.6.2 spec/lib/reveal-ck_spec.rb
reveal-ck-0.6.1 spec/lib/reveal-ck_spec.rb
reveal-ck-0.6.0 spec/lib/reveal-ck_spec.rb