Sha256: 543b8de8c5b4d5999ff81a74291b107817cee1eb733b75e8a0414983df885303

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 Bytes

Contents

require 'rails_helper'

feature 'clearing all of the delayed jobs' do
  include SharedFunctionsForFeatures

  scenario 'clearing the jobs from the delayed index' do
    given_there_are_two_delayed_jobs_enqueued_at_different_times
    when_i_visit_the_delayed_jobs_page
    and_i_click_the_clear_all_jobs_button
    then_i_should_be_on_the_delayed_jobs_page
    and_i_should_not_see_any_jobs_on_the_page
  end

  def and_i_should_not_see_any_jobs_on_the_page
    expect(page).to_not have_content 'SomeIvarJob'
    expect(page).to_not have_content 'JobWithoutParams'
  end

  def and_i_click_the_clear_all_jobs_button
    click_button 'Clear All Delayed Jobs'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
resque-scheduler-web-1.1.0 spec/features/delayed/clear_all_jobs_spec.rb
resque-scheduler-web-1.0.1 spec/features/delayed/clear_all_jobs_spec.rb
resque-scheduler-web-1.0.0 spec/features/delayed/clear_all_jobs_spec.rb