diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-30 10:31:54 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-30 10:31:54 +0100 |
commit | 666a7a0b53974ce5bd545d1e69a50aa46b59ee79 (patch) | |
tree | 25310c11de6e8b3c024d7788d3658f7ca01740bd /spec/models/outgoing_message_spec.rb | |
parent | fea5f1580608abf81f14c960f590b9395c9edaf8 (diff) | |
parent | b597d3528ac71d17c57d3ddca9950a4430f75039 (diff) |
Merge branch 'hotfix/0.14.0.1' into wdtk
Diffstat (limited to 'spec/models/outgoing_message_spec.rb')
-rw-r--r-- | spec/models/outgoing_message_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/outgoing_message_spec.rb b/spec/models/outgoing_message_spec.rb index 1e05e09f1..20f07e8fe 100644 --- a/spec/models/outgoing_message_spec.rb +++ b/spec/models/outgoing_message_spec.rb @@ -163,3 +163,13 @@ describe IncomingMessage, " when censoring data" do @om.body.should match(/fancy cat/) end end + +describe OutgoingMessage, "when validating the format of the message body", :focus => true do + + it 'should handle a salutation with a bracket in it' do + outgoing_message = FactoryGirl.build(:initial_request) + outgoing_message.stub!(:get_salutation).and_return("Dear Bob (Robert,") + lambda{ outgoing_message.valid? }.should_not raise_error(RegexpError) + end + +end |