Sha256: f2eb8bfd6362e0ec34e7f4828806557feaa4a24cea0da1dcd6474052a08c9a35

Contents?: true

Size: 816 Bytes

Versions: 20

Compression:

Stored size: 816 Bytes

Contents

require 'spec_helper'

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

        let :user_files do
          UserFiles.new(dir: stand_in_user_files_dir)
        end

        describe '#files' do
          it 'it names the files that will be copied into a presentation' do
            user_css = user_files.files.select do |file|
              file.include?('css/reveal.css')
            end
            expect(user_css.size).to eq 1
          end
        end

        describe '#dir' do
          it 'it names the directory where the files can be found' do
            expect(user_files.dir).to eq stand_in_user_files_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/user_files_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.0.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-3.0.0 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-0.6.2 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-0.6.1 spec/lib/reveal-ck/builders/user_files_spec.rb
reveal-ck-0.6.0 spec/lib/reveal-ck/builders/user_files_spec.rb