Added missing ":created_by_id => 1,".

This commit is contained in:
Martin Edenhofer 2015-04-06 21:11:07 +02:00
parent 4bf00e7c17
commit 0406243988

View file

@ -130,6 +130,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:data => File.read("#{Rails.root.to_s}/test/fixtures/es-normal.txt"), :data => File.read("#{Rails.root.to_s}/test/fixtures/es-normal.txt"),
:filename => 'es-normal.txt', :filename => 'es-normal.txt',
:preferences => {}, :preferences => {},
:created_by_id => 1,
) )
# add attachments which should get index / .pdf # add attachments which should get index / .pdf
@ -139,6 +140,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:data => File.read("#{Rails.root.to_s}/test/fixtures/test1.pdf"), :data => File.read("#{Rails.root.to_s}/test/fixtures/test1.pdf"),
:filename => 'test1.pdf', :filename => 'test1.pdf',
:preferences => {}, :preferences => {},
:created_by_id => 1,
) )
# add attachments which should get index / .box # add attachments which should get index / .box
@ -149,6 +151,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:data => File.read("#{Rails.root.to_s}/test/fixtures/es-box1.box"), :data => File.read("#{Rails.root.to_s}/test/fixtures/es-box1.box"),
:filename => 'mail1.box', :filename => 'mail1.box',
:preferences => {}, :preferences => {},
:created_by_id => 1,
) )
# add to big attachment which should not get index # add to big attachment which should not get index
@ -159,6 +162,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:data => File.read("#{Rails.root.to_s}/test/fixtures/es-too-big.txt"), :data => File.read("#{Rails.root.to_s}/test/fixtures/es-too-big.txt"),
:filename => 'es-too-big.txt', :filename => 'es-too-big.txt',
:preferences => {}, :preferences => {},
:created_by_id => 1,
) )
article.attachments = Store.list( article.attachments = Store.list(