Sha256: 4a3980bd1f485e015b3f1610fae6d10de616a935d60a40bac0b4ed30ec3434f9
Contents?: true
Size: 978 Bytes
Versions: 3
Compression:
Stored size: 978 Bytes
Contents
require 'test_helper' module ResqueWeb class QueuesControllerTest < ActionController::TestCase include ControllerTestHelpers setup do @routes = Engine.routes Resque.push(queue_name, class: 'ExampleJob') end teardown do Resque.remove_queue(queue_name) end let(:queue_name) { 'example_queue' } describe "GET /index" do it "renders the index page" do visit(:index) assert_template :index end end describe "GET /show" do it "renders the show page" do visit(:show, id: queue_name) assert_template :show end end describe "DELETE /destroy" do it "deletes queues" do visit(:destroy, {id: queue_name}, method: :delete) assert_redirected_to queues_path end it "deletes queues" do visit(:destroy, {id: queue_name}, method: :delete) Resque.queues.include?(queue_name).wont_equal true end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
resque-web-0.0.6 | test/functional/queues_controller_test.rb |
glebtv_resque_web-0.1.0 | test/functional/queues_controller_test.rb |
resque-web-0.0.5 | test/functional/queues_controller_test.rb |