Skip to content

Commit b88705e

Browse files
committed
KBP-137 #time 10m - added mail_test_helpers file
1 parent a6c7940 commit b88705e

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
RSpec.configure do |config|
1313
config.include CybeleTestHelpers
14-
config.include TestHelpers
14+
config.include MailTestHelpers
1515

1616
config.before(:all) do
1717
create_tmp_directory

spec/support/cybele_test_helpers.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,3 @@ def root_path
8585
File.expand_path('../../../', __FILE__)
8686
end
8787
end
88-
89-
module TestHelpers
90-
def mail_test_helper(path)
91-
file = content(path)
92-
expect(file).to match('smtp')
93-
expect(file).to match('address:')
94-
expect(file).to match('port:')
95-
expect(file).to match('enable_starttls_auto:')
96-
expect(file).to match('user_name:')
97-
expect(file).to match('password:')
98-
expect(file).to match('authentication:')
99-
unless content('config/settings.yml').present?
100-
expect(file).to match('host:')
101-
end
102-
end
103-
end

spec/support/mail_test_helpers.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
module MailTestHelpers
4+
def mail_test_helper(path)
5+
file = content(path)
6+
expect(file).to match('smtp')
7+
expect(file).to match('address:')
8+
expect(file).to match('port:')
9+
expect(file).to match('enable_starttls_auto:')
10+
expect(file).to match('user_name:')
11+
expect(file).to match('password:')
12+
expect(file).to match('authentication:')
13+
unless content('config/settings.yml').present?
14+
expect(file).to match('host:')
15+
end
16+
end
17+
end

0 commit comments

Comments
 (0)