Sha256: 7dbcc69006f6e679187a6726c48bb9c3018b208cf64943bb3c18c6f5cb3862f9

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 Bytes

Contents

require 'rails_helper'

feature 'seeing all the delayed jobs on the index page' do
  include SharedFunctionsForFeatures

  scenario 'delayed jobs show up on the page when at different times' do
    given_there_are_two_delayed_jobs_enqueued_at_different_times
    when_i_visit_the_delayed_jobs_page
    then_i_should_see_the_details_of_both_jobs_on_the_page
  end

  def then_i_should_see_the_details_of_both_jobs_on_the_page
    expect(page).to have_content 'SomeIvarJob'
    expect(page).to have_content 'JobWithoutParams'
    expect(page).to have_content some_time_in_the_future
    expect(page).to have_content some_other_time_in_the_future
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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