search for: read_fixture

Displaying 2 results from an estimated 2 matches for "read_fixture".

2007 May 29
0
specs for ActionMailer
...rom = ''jonathan at linowes.com'' @expected.to = ''linojon at gmail.com'' end it "should generate correct ''create notify'' message" do @expected.subject = ''ReviewRamp: itemcreated'' @expected.body = read_fixture(''itemcreated'') @expected.date = Time.now # (asserting mimeparts is too hard ) #@expected.encoded.should == AdminNotify.create_itemcreated (@item, at expected.date).encoded # just check contents part of message response = AdminNotify.create_itemcreated...
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
Hi, Why did you allow this incompatibility? ;) * fixtures/notifications/signup: _foo @expected.body = read_fixture(''signup'') p @expected.body #=> " foo\n" # because text.gsub(/_/," ") If you enhance TMail::Mail#body like this, I want you to convert mail.body code in render_body. My mailer code now: # topic is a ActiveRecord instance. topic attrs encoding is Shi...