Sha256: 7e00b8cce65edeb75e7094b9cea9f2f313286eace8b45d4bf50c1d0d785dde27

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

require 'spec_helper'
require 'digitalfilmtree/vfx/edl_ml_renamer'

describe Digitalfilmtree::VFX::EDLMLRenamer do
  describe "#execute" do
    context "missing required files" do
      specify do
        expect{subject.execute}.to raise_error "Not Ready"
      end
    end

    context "required files exist" do
      let(:target) { fixture('vfx/edl_ml_renamer') }
      before do
        subject.folder = target.path
        @originals = subject.movs.map{|i| Pathname.new(i)}
      end
      it "renames .mov files in the folder" do
        @originals.each {|i| i.should exist }
        subject.execute
        @originals.each {|i| i.should_not exist }
      end
      after { target.clean.reset }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digitalfilmtree-0.0.4 spec/lib/digitalfilmtree/vfx/edl_ml_renamer_spec.rb
digitalfilmtree-0.0.3 spec/lib/digitalfilmtree/vfx/edl_ml_renamer_spec.rb