1 14 end
With that change it's easy to test the initialize_defaults-method (as shown here using rspec):
1 describe ActionMailer::Localized do
2
3 before(:each) do
4 @localized_mailer = Class.new(ActionMailer::Localized) do
5 ; end
6 end.new
7 @localized_mailer.stub!(:render)
8 I18n.locale = 'de'
9 end
10
11 describe 'after being initialized' do
12 before(:each) do
13 @localized_mailer.create!('mailer_method', Object.new)
14 end
15 it "should have the localized template name set" do
16 @localized_mailer.template.should == 'de_mailer_method'
17 end
18 end
19
20 end
2 comments:
How to get to MGM Grand in Las Vegas by Bus - Drmcd
From 부천 출장샵 the 동해 출장샵 MGM Grand, to the casino, 영주 출장마사지 or just the casino section, get to MGM Grand in Las 파주 출장안마 Vegas by Bus. from 안산 출장마사지 MGM Grand or MGM Grand, Las Vegas.
tf683 bwjerseys be268
Post a Comment