Sha256: c9db4dcf8fe7d22a62ea29977ae3d19718578fcb3405056968aea6487df2150c

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

require 'rails_helper'

describe ActiveEncode::Polling do
  before do
    class PollingEncode < ActiveEncode::Base
      include ActiveEncode::Polling
    end
  end

  after do
    Object.send(:remove_const, :PollingEncode)
  end

  describe 'after_create' do
    subject { PollingEncode.create("sample.mp4") }

    it "enqueues a PollingJob" do
      subject
      expect(ActiveEncode::PollingJob).to have_been_enqueued.with(subject)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_encode-0.5.0 spec/units/polling_spec.rb
active_encode-0.4.1 spec/units/polling_spec.rb
active_encode-0.4 spec/units/polling_spec.rb
active_encode-0.2 spec/units/polling_spec.rb