Sha256: d8412fec11319616cd378f1f2845bbede5ff64cd322ca2d91bc6883aae8d7c12

Contents?: true

Size: 801 Bytes

Versions: 11

Compression:

Stored size: 801 Bytes

Contents

require 'spec_helper'

describe Fontcustom do
  let (:input_dir) { 'spec/fixtures/vectors' }
  let (:output_dir) { 'tmp' }
  let (:fontcustom) { Fontcustom }

  before(:all) do
    fontcustom.watch(input_dir, output_dir)
  end

  context '#watch' do
    it 'should detect when a vector file changes' do
      `mv spec/fixtures/vectors/B.svg spec/fixtures/vectors/E.svg`
      sleep 1
      fontcustom.should_receive(:compile).with(input_dir, output_dir)
    end

    it 'should detect when a vector file is added' do
    end

    it 'should detect when a vector file is removed' do
    end

    it 'should send complain if the dir has no vectors' do
    end
  end

  after(:all) do
    Fontcustom.stop
    `mv spec/fixtures/vectors/E.svg spec/fixtures/vectors/B.svg`
    cleanup(output_dir)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fontcustom-0.1.4 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.1.3 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.1.2 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.1.1 spec/fontcustom/watcher_spec.rb.off
fontcustomtoadstool-0.1.3.2 spec/fontcustom/watcher_spec.rb.off
fontcustomtoadstool-0.1.3.1 spec/fontcustom/watcher_spec.rb.off
fontcustomtoadstool-0.1.3 spec/fontcustom/watcher_spec.rb.off
fontcustomtoadstool-0.1.2 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.1.0 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.0.2 spec/fontcustom/watcher_spec.rb.off
fontcustom-0.0.1 spec/fontcustom/watcher_spec.rb.off