1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Some final syntax fixes

This commit is contained in:
Brian Cardarella 2012-06-24 17:17:06 -04:00
parent a11fcd9a76
commit 35717a9370
2 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,7 @@ module ActionMailer::Async
end
# Will push the message onto the Queue to be processed
def deliver(force = false)
def deliver
@queue << self
end
end

View file

@ -8,7 +8,6 @@ require 'mailers/base_mailer'
require 'mailers/proc_mailer'
require 'mailers/asset_mailer'
require 'mailers/async_mailer'
require 'rails/queueing'
class BaseTest < ActiveSupport::TestCase
@ -422,7 +421,7 @@ class BaseTest < ActiveSupport::TestCase
assert_equal(1, BaseMailer.deliveries.length)
end
def stub_queue klass, queue
def stub_queue(klass, queue)
Class.new(klass) {
extend Module.new {
define_method :queue do