-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KBP-137 #time 10m - added mail_test_helpers file
- Loading branch information
1 parent
a6c7940
commit b88705e
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module MailTestHelpers | ||
def mail_test_helper(path) | ||
file = content(path) | ||
expect(file).to match('smtp') | ||
expect(file).to match('address:') | ||
expect(file).to match('port:') | ||
expect(file).to match('enable_starttls_auto:') | ||
expect(file).to match('user_name:') | ||
expect(file).to match('password:') | ||
expect(file).to match('authentication:') | ||
unless content('config/settings.yml').present? | ||
expect(file).to match('host:') | ||
end | ||
end | ||
end |