mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fix tests
This commit is contained in:
parent
c9f9523210
commit
94efd2e649
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ module Api
|
|||
end
|
||||
file_tokens = prms.map { |p| p[:attributes][:file_token] }
|
||||
result_text_params[:text].scan(
|
||||
/data-token="(\w+)"/
|
||||
/data-mce-token="(\w+)"/
|
||||
).flatten.each do |token|
|
||||
unless file_tokens.include?(token)
|
||||
raise ActiveRecord::RecordInvalid,
|
||||
|
|
|
@ -128,7 +128,7 @@ RSpec.describe "Api::V1::ResultsController", type: :request do
|
|||
attributes: {
|
||||
text: 'Result text 1 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAA'\
|
||||
'AACCAIAAAD91JpzAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAE0lE'\
|
||||
'QVQIHWP8//8/AwMDExADAQAkBgMBOOSShwAAAABJRU5ErkJggg==" data-token="a1">'
|
||||
'QVQIHWP8//8/AwMDExADAQAkBgMBOOSShwAAAABJRU5ErkJggg==" data-mce-token="a1">'
|
||||
} },
|
||||
{ type: 'tiny_mce_assets',
|
||||
attributes: {
|
||||
|
|
Loading…
Reference in a new issue