Sha256: bbe8088581937e7fabcb211b5f59a0ec7971cb5229b0fe4962880f8d44365c7d

Contents?: true

Size: 759 Bytes

Versions: 34

Compression:

Stored size: 759 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

# Pull in the server test_helper from resque
require 'resque/server/test_helper.rb'

context "on GET to /schedule" do
  setup { get "/schedule" }

  should_respond_with_success
end

context "on GET to /schedule with scheduled jobs" do
  setup do 
    ENV['rails_env'] = 'production'
    Resque.schedule = {:some_ivar_job => {'cron' => "* * * * *", 'class' => 'SomeIvarJob', 'args' => "/tmp", 'rails_env' => 'production'}}
    Resque::Scheduler.load_schedule!
    get "/schedule"
  end

  should_respond_with_success

  test 'see the scheduled job' do
    assert last_response.body.include?('SomeIvarJob')
  end
end

context "on GET to /delayed" do
  setup { get "/delayed" }

  should_respond_with_success
end

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
nulogy-resque-scheduler-1.10.15 test/resque-web_test.rb
sskirby-resque-scheduler-1.10.14 test/resque-web_test.rb
sskirby-resque-scheduler-1.10.13 test/resque-web_test.rb
resque-mongo-scheduler-2.0.3 test/resque-web_test.rb
resque-scheduler-2.0.0.c test/resque-web_test.rb
resque-mongo-scheduler-2.0.2 test/resque-web_test.rb
resque-scheduler-2.0.0.b test/resque-web_test.rb
resque-scheduler-1.9.8 test/resque-web_test.rb
resque-scheduler-2.0.0.a test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.12 test/resque-web_test.rb
resque-scheduler-1.9.7 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.11 test/resque-web_test.rb
davidyang-resque-scheduler-1.10.11 test/resque-web_test.rb
sskirby-resque-scheduler-1.10.9 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.10 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.9 test/resque-web_test.rb
sskirby-resque-scheduler-1.10.8 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.8 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.7 test/resque-web_test.rb
brianjlandau-resque-scheduler-1.10.6 test/resque-web_test.rb