diff options
author | Mark Longair <mhl@pobox.com> | 2013-11-15 11:39:12 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-11-15 11:39:12 +0000 |
commit | 64618741c17760fcb59647d74d1ccaff56160b15 (patch) | |
tree | d84f1f035b136180f0bdacb22895fbb0f1abf2c1 /spec/models/info_request_spec.rb | |
parent | 96b3b5adbdafb25e5ab6ca94b89d6682a2e8f0e4 (diff) | |
parent | cda26c36f309cdd8e8bbab9186f6cc0d4876e6c9 (diff) |
Merge branch 'release/0.15' into wdtk
Conflicts:
lib/tasks/stats.rake
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r-- | spec/models/info_request_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb index 09789f429..cf4dda62c 100644 --- a/spec/models/info_request_spec.rb +++ b/spec/models/info_request_spec.rb @@ -797,6 +797,16 @@ describe InfoRequest do end end + describe 'when working out a subject for request emails' do + + it 'should create a standard request subject' do + info_request = FactoryGirl.build(:info_request) + expected_text = "Freedom of Information request - #{info_request.title}" + info_request.email_subject_request.should == expected_text + end + + end + describe 'when working out a subject for a followup emails' do it "should not be confused by an nil subject in the incoming message" do |