Sha256: cec7c4c5cf4807aefc7e458e6549847fde59221dc4057860ff448f9b137b110d

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

require 'spec_helper'

describe Rivendell::Import::Context do

  let(:file) { Rivendell::Import::File.new "dummy.wav" }
  let(:task) { Rivendell::Import::Task.new :file => file }

  subject { Rivendell::Import::Context.new task }

  describe "#notify" do
    
    it "should add the specified notifier to the task" do
      subject.notify 'recipient@domain', :by => :email
      subject.task.notifiers.first.to.should == 'recipient@domain'
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rivendell-import-0.9 spec/rivendell/import/context_spec.rb
rivendell-import-0.8 spec/rivendell/import/context_spec.rb
rivendell-import-0.7 spec/rivendell/import/context_spec.rb
rivendell-import-0.6 spec/rivendell/import/context_spec.rb
rivendell-import-0.0.5 spec/rivendell/import/context_spec.rb
rivendell-import-0.0.4 spec/rivendell/import/context_spec.rb
rivendell-import-0.0.3 spec/rivendell/import/context_spec.rb
rivendell-import-0.0.2 spec/rivendell/import/context_spec.rb
rivendell-import-0.0.1 spec/rivendell/import/context_spec.rb