Sha256: d2062eb5035d12d8c5e3bab7d790f78511d720d652e468d7ed66d665d2ccd707

Contents?: true

Size: 352 Bytes

Versions: 9

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

describe Rivendell::Import::Tasks do

  let(:file) { Rivendell::Import::File.new "dummy.wav" }

  describe "#run" do

    it "should run each ready task" do
      task = subject.create(file)
      subject.stub :ready_tasks => [task]
      subject.run rescue nil
      task.reload.status.should_not be_pending
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rivendell-import-1.04 spec/rivendell/import/tasks_spec.rb
rivendell-import-1.03 spec/rivendell/import/tasks_spec.rb
rivendell-import-1.02 spec/rivendell/import/tasks_spec.rb
rivendell-import-1.01 spec/rivendell/import/tasks_spec.rb
rivendell-import-0.10 spec/rivendell/import/tasks_spec.rb
rivendell-import-0.9 spec/rivendell/import/tasks_spec.rb
rivendell-import-0.8 spec/rivendell/import/tasks_spec.rb
rivendell-import-0.7 spec/rivendell/import/tasks_spec.rb
rivendell-import-0.6 spec/rivendell/import/tasks_spec.rb