Skip to content

Commit

Permalink
Send, reply, forward tests optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Oct 27, 2021
1 parent 11301e4 commit 9d45a64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/emails_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def startup

context 'create_and_send' do
should 'send with text content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
subject = 'New message'
options = Mailosaur::Models::MessageCreateOptions.new()
options.to = 'anything@%s' % [@@verified_domain]
Expand All @@ -235,7 +235,7 @@ def startup
end

should 'send with HTML content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
subject = 'New HTML message'
options = Mailosaur::Models::MessageCreateOptions.new()
options.to = 'anything@%s' % [@@verified_domain]
Expand All @@ -250,7 +250,7 @@ def startup

context 'forward' do
should 'forward with text content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
target_email = @@emails[0]
body = 'Forwarded message'
options = Mailosaur::Models::MessageForwardOptions.new()
Expand All @@ -262,7 +262,7 @@ def startup
end

should 'forward with HTML content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
target_email = @@emails[0]
body = '<p>Forwarded <strong>HTML</strong> message.</p>'
options = Mailosaur::Models::MessageForwardOptions.new()
Expand All @@ -276,7 +276,7 @@ def startup

context 'reply' do
should 'reply with text content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
target_email = @@emails[0]
body = 'Reply message'
options = Mailosaur::Models::MessageForwardOptions.new()
Expand All @@ -288,7 +288,7 @@ def startup
end

should 'reply with HTML content' do
omit_if(@@verified_domain.nil?)
omit_if(@@verified_domain.empty?)
target_email = @@emails[0]
body = '<p>Reply <strong>HTML</strong> message.</p>'
options = Mailosaur::Models::MessageForwardOptions.new()
Expand Down

0 comments on commit 9d45a64

Please sign in to comment.