Sha256: 6e77c36924812816f99f66b1fa1d2a99923da857126554d5e81dd4531483b819

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

require 'rails_helper'

describe <%= class_name %> do
  before do
    SyncMachine.eager_load(<%= class_name %>)
    clear_workers
  end

  def clear_workers
    <%= class_name %>::FindSubjectsWorker.clear
    <%= class_name %>::EnsurePublicationWorker.clear
  end

  def drain_workers
    <%= class_name %>::FindSubjectsWorker.drain
    <%= class_name %>::EnsurePublicationWorker.drain
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sync_machine-1.4.0 lib/rails/generators/rspec/templates/service_spec.rb
sync_machine-1.3.0 lib/rails/generators/rspec/templates/service_spec.rb
sync_machine-1.2.0 lib/rails/generators/rspec/templates/service_spec.rb
sync_machine-1.1.1 lib/rails/generators/rspec/templates/service_spec.rb
sync_machine-1.1.0 lib/rails/generators/rspec/templates/service_spec.rb
sync_machine_generator-0.8.0 lib/generators/rspec/templates/service_spec.rb
sync_machine_generator-0.1.0 lib/generators/rspec/templates/service_spec.rb