require 'spec_helper' describe Fontrobot do let (:input_dir) { 'spec/fixtures/vectors' } let (:output_dir) { 'tmp' } let (:fontrobot) { Fontrobot } before(:all) do fontrobot.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 fontrobot.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 Fontrobot.stop `mv spec/fixtures/vectors/E.svg spec/fixtures/vectors/B.svg` cleanup(output_dir) end end