Sha256: 6f92d6d2b34e2585318d469131d4f02c7cdc7f24733fd3a0d95c9603b3f3ec06

Contents?: true

Size: 942 Bytes

Versions: 19

Compression:

Stored size: 942 Bytes

Contents

require 'spec_helper'

module RevealCK
  module Render
    describe Scope do
      describe '#contents_of' do
        let :quote_file do
          spec_data 'render', 'scope', 'quote'
        end

        let :scope do
          Scope.new(dir: Dir.pwd, config: {})
        end

        it 'provides access to a file on the file system' do
          quote = scope.contents_of quote_file
          expect(quote).to include 'begin it'
        end
      end

      describe '#css_files' do
        let :css_dir do
          spec_data 'render', 'scope', 'css_dir'
        end

        let :scope do
          Scope.new(dir: css_dir, config: {})
        end

        it 'can return a list of the css files' do
          css_files = scope.css_files
          expect(css_files.size).to eq 2
          expect(css_files).to include 'css/custom.css'
          expect(css_files).to include 'css/nested/custom.css'
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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