blob: 837f54c864a3c47391fb82afb6b628532a256b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'spec_helper.rb'
describe QuestionContentEmail do
it "should properly return empty reuqirements" do
Factory(:question_content_email).req_array.should == []
end
it "should properly return requirements as string and as html" do
content = Factory(:question_content_email)
content.req_text = "To : example@example.com\nReply-to : reply@example.com"
content.req_text.should == "To : example@example.com\nReply-to : reply@example.com\n"
content.req_html.should == "To : example@example.com<br/>\nReply-to : reply@example.com\n"
end
end
|