Sha256: b0aa853e0b380379533ce1487462b2fd997baa30a67f4944bdddeb21f1cb5afa

Contents?: true

Size: 762 Bytes

Versions: 6

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'

module RevealCK
  module Builders
    describe RevealJsFiles do
      describe '#all' do
        let :dir do
          File.join(Dir.pwd, 'reveal.js')
        end

        let :reveal_js_files do
          RevealJsFiles.new(dir: dir)
        end

        describe '#files' do
          it 'it names all of the needed reveal.js files' do
            reveal_css = reveal_js_files.files.select do |file|
              file.include?('css/reveal.min.css')
            end
            expect(reveal_css.size).to eq 1
          end
        end

        describe '#dir' do
          it 'it names the directory where the files can be found' do
            expect(reveal_js_files.dir).to eq dir
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
reveal-ck-0.5.1 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb
reveal-ck-0.5.0 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb
reveal-ck-0.4.2 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb
reveal-ck-0.4.1 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb
reveal-ck-0.4.0 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb
reveal-ck-0.3.0 spec/lib/reveal-ck/builders/reveal_js_files_spec.rb