Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
1  .rspec
... ...
@@ -1,3 +1,4 @@
1 1
 --colour
2 2
 --format documentation
3 3
 --order rand
  4
+-I app/mailman
4  app/mailman/post_email.rb
... ...
@@ -1,4 +0,0 @@
1  
-module Mailman
2  
-  class PostEmail
3  
-  end
4  
-end
5  app/models/mail_room.rb
@@ -47,9 +47,4 @@ def was_sent?
47 47
   def was_sent_on
48 48
     sent_at
49 49
   end
50  
-
51  
-  # NOTE: Required because of validation - move to a presenter?
52  
-  def has_errors?
53  
-    false
54  
-  end
55 50
 end
17  spec/mailman/post_email_spec.rb
... ...
@@ -1,17 +0,0 @@
1  
-require_relative '../../app/mailman/post_email'
2  
-
3  
-describe Mailman::PostEmail do
4  
-  context "posting an email" do
5  
-    it 'will have a recipient email address'
6  
-    it 'can have an array of recipient email addresses'
7  
-    it 'will have a senders email address'
8  
-    it 'will have subject line'
9  
-    it 'will have a body'
10  
-
11  
-
12  
-    it 'will error if no recipients are found'
13  
-    it 'will error if no sender email address is given'
14  
-    it 'will error if no subject is given'
15  
-    it 'will error if no body is given'
16  
-  end
17  
-end
6  spec/models/mail_room_spec.rb
@@ -11,12 +11,6 @@
11 11
       mail.should be_valid
12 12
     end
13 13
 
14  
-    it '.has_errors?' do
15  
-      mail = MailRoom.new(@hash)
16  
-      mail.has_errors?.should be_false
17  
-    end
18  
-      
19  
-
20 14
     it 'will not pass when missing a recipient' do
21 15
       mail = MailRoom.new(@hash.merge(recipient: ''))
22 16
       mail.should_not be_valid

No commit comments for this range

Something went wrong with that request. Please try again.