Skip to content
Permalink
Browse files

Update expected

  • Loading branch information...
kou committed Feb 18, 2019
1 parent 3743bc8 commit 6f043dcee92b0767d61139783f8ec73ef0019279
Showing with 5 additions and 2 deletions.
  1. +3 −1 test/jobs/extract_fulltext_job_test.rb
  2. +2 −1 test/unit/attachment_test.rb
@@ -1,6 +1,7 @@
require 'test_helper'

class ExtractFulltextJobTest < ActiveJob::TestCase
fixtures :issues, :users

def test_should_extract_fulltext
att = nil
@@ -17,7 +18,8 @@ def test_should_extract_fulltext
ExtractFulltextJob.perform_now(att.id)

att.reload
assert att.fulltext.include?("this is a text file for upload tests\r\nwith multiple lines")
assert_equal("this is a text file for upload tests with multiple lines",
att.fulltext)
end

end
@@ -509,6 +509,7 @@ def test_should_extract_fulltext
:author => User.find(1),
:content_type => 'text/plain')
a.reload
assert a.fulltext.include?("this is a text file for upload tests\r\nwith multiple lines")
assert_equal("this is a text file for upload tests with multiple lines",
a.fulltext)
end
end

0 comments on commit 6f043dc

Please sign in to comment.
You can’t perform that action at this time.