tests: fix broken tests.

This commit is contained in:
evazion
2018-09-24 17:34:08 -05:00
parent d9063a9f2a
commit f5c9616f62
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ class AliasAndImplicationImporter
end
def self.tokenize(text)
text.split(/\r\n|\r|\n/).map do |line|
text.split(/\r\n|\r|\n/).reject(&:blank?).map do |line|
line = line.gsub(/[[:space:]]+/, " ").strip
if line =~ /^(?:create alias|aliasing|alias) (\S+) -> (\S+)$/i

View File

@@ -206,7 +206,7 @@ class DmailTest < ActiveSupport::TestCase
should "fail gracefully if recipient doesn't exist" do
assert_nothing_raised do
dmail = Dmail.create_automated(to_name: "this_name_does_not_exist", title: "test", body: "test")
assert_equal(["can't be blank"], dmail.errors[:to_id])
assert_equal(["must exist"], dmail.errors[:to])
end
end
end