Skip to content

Commit

Permalink
tests: fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
evazion committed Sep 24, 2018
1 parent d9063a9 commit f5c9616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/logical/alias_and_implication_importer.rb
Expand Up @@ -24,7 +24,7 @@ def rename_aliased_pages?
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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/dmail_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit f5c9616

Please sign in to comment.