_prepare_context

_prepare_context() Instance Public methods Prepares the context by setting the appropriate instance variables. :api: plugin

_layout_for

_layout_for(name=nil) Instance Public methods Encapsulates the interaction with the view flow so it returns the correct buffer on yield. This is usually overwritten by helpers to add more behavior. :api: plugin

cache_template_loading=

cache_template_loading=(value) Class Public methods

cache_template_loading

cache_template_loading() Class Public methods

version

version() Class Public methods Returns the version of the currently loaded ActionPack as a Gem::Version

gem_version

gem_version() Class Public methods Returns the version of the currently loaded ActionPack as a Gem::Version

version

version() Class Public methods Returns the version of the currently loaded ActionMailer as a Gem::Version

gem_version

gem_version() Class Public methods Returns the version of the currently loaded ActionMailer as a Gem::Version

assert_no_emails

assert_no_emails(&block) Instance Public methods Assert that no emails have been sent. def test_emails assert_no_emails ContactMailer.welcome.deliver assert_emails 1 end If a block is passed, that block should not cause any emails to be sent. def test_emails_again assert_no_emails do # No emails should be sent from this block end end Note: This assertion is simply a shortcut for: assert_emails 0

assert_emails

assert_emails(number) Instance Public methods Asserts that the number of emails sent matches the given number. def test_emails assert_emails 0 ContactMailer.welcome.deliver assert_emails 1 ContactMailer.welcome.deliver assert_emails 2 end If a block is passed, that block should cause the specified number of emails to be sent. def test_emails_again assert_emails 1 do ContactMailer.welcome.deliver end assert_emails 2 do ContactMailer.welcome.deliver Cont