Sha256: c64e706e23d948cd963dbbf697c1684d8ec2603423556485a125a565b50bab92

Contents?: true

Size: 483 Bytes

Versions: 11

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true
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

11 entries across 11 versions & 1 rubygems

Version Path
active_encode-1.2.0 spec/units/polling_spec.rb
active_encode-1.1.3 spec/units/polling_spec.rb
active_encode-1.1.2 spec/units/polling_spec.rb
active_encode-1.1.1 spec/units/polling_spec.rb
active_encode-1.1.0 spec/units/polling_spec.rb
active_encode-1.0.0 spec/units/polling_spec.rb
active_encode-0.8.2 spec/units/polling_spec.rb
active_encode-0.8.1 spec/units/polling_spec.rb
active_encode-0.8.0 spec/units/polling_spec.rb
active_encode-0.7.0 spec/units/polling_spec.rb
active_encode-0.6.0 spec/units/polling_spec.rb