test/backgrounded/handler/resque_handler_test.rb in backgrounded-0.6.1 vs test/backgrounded/handler/resque_handler_test.rb in backgrounded-0.6.2

- old
+ new

@@ -9,24 +9,24 @@ create_table :posts, :force => true do |t| t.column :title, :string end end -class User < ActiveRecord::Base - backgrounded :do_stuff +class ResqueHandlerTest < Test::Unit::TestCase + class User < ActiveRecord::Base + backgrounded :do_stuff - def do_stuff + def do_stuff + end end -end -class Post < ActiveRecord::Base - backgrounded :do_stuff => {:queue => 'important'} + class Post < ActiveRecord::Base + backgrounded :do_stuff => {:queue => 'important'} - def do_stuff + def do_stuff + end end -end -class ResqueHandlerTest < Test::Unit::TestCase context 'when backgrounded is configured with resque' do setup do Resque.reset! @handler = Backgrounded::Handler::ResqueHandler.new Backgrounded.handler = @handler