Sha256: d14c375df3f3b4efb26533179eedbe63a31136ab87b3ad6582aabffd938b1f1c

Contents?: true

Size: 597 Bytes

Versions: 13

Compression:

Stored size: 597 Bytes

Contents

require 'spec_helper'

describe Rivendell::Import::Worker do

  let(:import) { Rivendell::Import::Base.new }
  subject { Rivendell::Import::Worker.new import }

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

  describe "initialization" do

    it "should use the given Import" do
      Rivendell::Import::Worker.new(import).import.should == import
    end
    
  end

  it "should run Import tasks in a separated Thread" do
    pending "Transaction masks changes for Worker"
    import.tasks.create file
    subject.start
    sleep 0.5
    import.tasks.should_not be_pending
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rivendell-import-1.04 spec/rivendell/import/worker_spec.rb
rivendell-import-1.03 spec/rivendell/import/worker_spec.rb
rivendell-import-1.02 spec/rivendell/import/worker_spec.rb
rivendell-import-1.01 spec/rivendell/import/worker_spec.rb
rivendell-import-0.10 spec/rivendell/import/worker_spec.rb
rivendell-import-0.9 spec/rivendell/import/worker_spec.rb
rivendell-import-0.8 spec/rivendell/import/worker_spec.rb
rivendell-import-0.7 spec/rivendell/import/worker_spec.rb
rivendell-import-0.6 spec/rivendell/import/worker_spec.rb
rivendell-import-0.0.5 spec/rivendell/import/worker_spec.rb
rivendell-import-0.0.4 spec/rivendell/import/worker_spec.rb
rivendell-import-0.0.3 spec/rivendell/import/worker_spec.rb
rivendell-import-0.0.2 spec/rivendell/import/worker_spec.rb