This file contains hidden or 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
| def check(conf, what) | |
| if c = conf[what] | |
| if block_given? | |
| yield c | |
| else | |
| false | |
| end | |
| else | |
| puts "missing: #{what}" | |
| true |
This file contains hidden or 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
| When /^I connect to smtp on (.+)$/ do |server| | |
| @smtp = Net::SMTP.start(server, 25) | |
| end | |
| When /^the sender is (\S+)$/ do |from| | |
| @from = from | |
| end | |
| Then /^it should accept email to (\S+)$/ do |to| | |
| message = "a test message from cucumber-nagios" |
NewerOlder