Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests #82

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions spec/lib/objects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@

describe 'parsing file info' do
it 'can parse info for one file in an object' do
expect(@media_object.get_file_info(@object, @file_info,@object[:json][:parts][0]['mdpi_barcode'],{}).class).to eq(Hash)
expect(@media_object.get_file_info(@object, @file_info,@object[:json][:parts][0]['mdpi_barcode'],0,{}).class).to eq(Hash)
end

# Turn this back on once file parsing has been finalized
Expand All @@ -213,7 +213,7 @@
@sobject = obj.parse_request_body
@file_info = @sobject[:json][:parts][0]['files']['1']
@comments = obj.parse_comments(@sobject)
@parsed_info = obj.get_file_info(@sobject, @file_info, @sobject[:json][:parts][0]['mdpi_barcode'], @comments)
@parsed_info = obj.get_file_info(@sobject, @file_info, @sobject[:json][:parts][0]['mdpi_barcode'], 0, @comments)

@fixture_info = {
workflow_name: "avalon",
Expand All @@ -224,6 +224,7 @@
status_code: "COMPLETED",
structure: "<?xml version=\"1.0\" ?>\n<Item label=\"Betacam 1/1 Side 1 (40000000693483)\">\n <Span label=\"Segment 1\" begin=\"00:00:00.000\" end=\"00:01:56.290\"/>\n <Span label=\"Segment 2\" begin=\"00:01:58.457\" end=\"00:02:28.323\"/>\n</Item>",
label: 'Betacam 1/1 Side 1 (40000000693483)',
other_identifier: "40000000693483_00",
thumbnail_offset: 120457,
poster_offset: 120457,
comment: ["Upon inspection under the microscope, it appears that the groove may have been cut slightly off of vertical.",
Expand Down Expand Up @@ -279,7 +280,7 @@

end
it 'can parse info for one file in an object' do
expect(@media_object.get_file_info(@object, @file_info,@object[:json][:parts][0]['mdpi_barcode'],{}).class).to eq(Hash)
expect(@media_object.get_file_info(@object, @file_info,@object[:json][:parts][0]['mdpi_barcode'],0,{}).class).to eq(Hash)
end

# Turn this back on once file parsing has been finalized
Expand Down Expand Up @@ -608,4 +609,4 @@
expect(Objects.new.oldest_ready_object['id']).not_to eq(m.id)
end
end
end
end