Sha256: 3fddc6eb10e3a6657112fe726948994e6fe8386b46baadae878072b4a901fe51

Contents?: true

Size: 758 Bytes

Versions: 20

Compression:

Stored size: 758 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.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

20 entries across 20 versions & 1 rubygems

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