Moved normalized_single_protocol.json

This commit is contained in:
Urban Rotnik 2019-05-30 20:26:22 +02:00
parent a15596a126
commit 92c24451d9
14 changed files with 14 additions and 14 deletions

View file

@ -10,7 +10,7 @@ describe Protocols::ImportProtocolFromClientService do
.call(protocol_client_id: 'id', protocol_source: 'protocolsio/v3', user_id: user.id, team_id: team.id)
end
let(:normalized_response) do
JSON.parse(file_fixture('protocols_importer/protocols_io/v3/normalized_single_protocol.json').read)
JSON.parse(file_fixture('protocol_importers/normalized_single_protocol.json').read)
.to_h.with_indifferent_access
end

View file

@ -4,7 +4,7 @@ require 'rails_helper'
RSpec.describe ProtocolImporters::AttachmentsBuilder do
let(:step) do
JSON.parse(file_fixture('protocols_importer/step_with_attachments.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/step_with_attachments.json').read).to_h.with_indifferent_access
end
let(:generate_files_from_step) { described_class.generate(step) }
let(:first_file_in_result) { generate_files_from_step.first }

View file

@ -4,16 +4,16 @@ require 'rails_helper'
RSpec.describe ProtocolImporters::ProtocolDescriptionBuilder do
let(:description_only) do
JSON.parse(file_fixture('protocols_importer/description_with_body.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_body.json').read).to_h.with_indifferent_access
end
let(:description_with_image) do
JSON.parse(file_fixture('protocols_importer/description_with_image.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_image.json').read).to_h.with_indifferent_access
end
let(:description_with_extra_content) do
JSON.parse(file_fixture('protocols_importer/description_with_extra_content.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_extra_content.json').read).to_h.with_indifferent_access
end
let(:description_with_html) do
JSON.parse(file_fixture('protocols_importer/description_with_body_html.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_body_html.json').read).to_h.with_indifferent_access
end
describe 'self.generate' do

View file

@ -8,7 +8,7 @@ describe ProtocolImporters::ProtocolIntermediateObject do
let(:user) { create :user }
let(:team) { create :team }
let(:normalized_result) do
JSON.parse(file_fixture('protocols_importer/protocols_io/v3/normalized_single_protocol.json').read)
JSON.parse(file_fixture('protocol_importers/normalized_single_protocol.json').read)
.to_h.with_indifferent_access
end

View file

@ -4,7 +4,7 @@ require 'rails_helper'
describe ProtocolImporters::ProtocolsIO::V3::ProtocolNormalizer do
let(:response) do
JSON.parse(file_fixture('protocols_importer/protocols_io/v3/single_protocol.json').read)
JSON.parse(file_fixture('protocol_importers/protocols_io/v3/single_protocol.json').read)
.to_h.with_indifferent_access
end
@ -15,7 +15,7 @@ describe ProtocolImporters::ProtocolsIO::V3::ProtocolNormalizer do
end
let(:normalized_result) do
JSON.parse(file_fixture('protocols_importer/protocols_io/v3/normalized_single_protocol.json').read)
JSON.parse(file_fixture('protocol_importers/normalized_single_protocol.json').read)
.to_h.with_indifferent_access
end

View file

@ -4,25 +4,25 @@ require 'rails_helper'
RSpec.describe ProtocolImporters::StepDescriptionBuilder do
let(:description_only) do
JSON.parse(file_fixture('protocols_importer/description_with_body.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_body.json').read).to_h.with_indifferent_access
end
let(:description_with_html) do
JSON.parse(file_fixture('protocols_importer/description_with_body_html.json').read).to_h.with_indifferent_access
JSON.parse(file_fixture('protocol_importers/description_with_body_html.json').read).to_h.with_indifferent_access
end
let(:description_with_components) do
JSON.parse(file_fixture('protocols_importer/step_description_with_components.json').read)
JSON.parse(file_fixture('protocol_importers/step_description_with_components.json').read)
.to_h.with_indifferent_access
end
let(:description_with_extra_content) do
JSON.parse(file_fixture('protocols_importer/description_with_extra_content.json').read)
JSON.parse(file_fixture('protocol_importers/description_with_extra_content.json').read)
.to_h.with_indifferent_access
end
let(:normalized_json) do
JSON.parse(file_fixture('protocols_importer/protocols_io/v3/normalized_single_protocol.json').read)
JSON.parse(file_fixture('protocol_importers/normalized_single_protocol.json').read)
.to_h.with_indifferent_access
end