Created
April 30, 2015 17:00
-
-
Save jcreed/2145278206c83160e546 to your computer and use it in GitHub Desktop.
mcat attachment tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative '../transformations_spec_helper' | |
describe 'MCAT After Jan 31 2015 tests' do | |
include TransformationsSpecHelper | |
describe_transformations_for_record("UNICAS/0/AcademicHistory/0/OfficialTests/0/MCATScore2015/111") do | |
specify { subject["applicant_id"].must_equal applicant_id_proxy } | |
specify { subject["date"].must_equal DateParser.call("2015-01-30") } | |
specify { subject["identifier"].must_equal "111" } | |
specify { subject["official_received_date"].must_equal nil } | |
specify { subject["status_id"].must_equal ["lookup-proxy", "test_statuses", "Taken"] } | |
specify { subject["table_name"].must_equal "tests" } | |
specify { subject["type"].must_equal "mcat_official_after_jan_31_2015" } | |
end | |
end | |
describe 'MCAT After Jan 31 2015 scores' do | |
include TransformationsSpecHelper | |
describe_transformations_for_record("UNICAS/0/AcademicHistory/0/OfficialTests/0/MCATScore2015/111/Attachment/scores_official") do | |
let(:id_proxy_for_mcat_graph_attachment_id) { id_proxy_for("UNICAS/0/AcademicHistory/0/OfficialTests/0/MCATScore2015/111/Attachment/22/mcat_score_attachment") } | |
let(:id_proxy_for_test_id) { id_proxy_for("UNICAS/0/AcademicHistory/0/OfficialTests/0/MCATScore2015/111") } | |
specify { subject["chemical_and_physical"].must_equal 127 } | |
specify { subject["analysis_and_reasoning"].must_equal 126 } | |
specify { subject["biological_and_biochemical"].must_equal 125 } | |
specify { subject["behavior"].must_equal 128 } | |
specify { subject["total"].must_equal 506 } | |
specify { subject["overall_result"].must_equal 506 } | |
specify { subject["chemical_and_physical_percentile"].must_equal 67.5 } | |
specify { subject["analysis_and_reasoning_percentile"].must_equal 68.5 } | |
specify { subject["biological_and_biochemical_percentile"].must_equal 41.5 } | |
specify { subject["behavior_percentile"].must_equal 90.8 } | |
specify { subject["total_percentile"].must_equal 98.4 } | |
specify { subject["chemical_and_physical_low_band"].must_equal 126 } | |
specify { subject["chemical_and_physical_high_band"].must_equal 128 } | |
specify { subject["analysis_and_reasoning_low_band"].must_equal 125 } | |
specify { subject["analysis_and_reasoning_high_band"].must_equal 127 } | |
specify { subject["biological_and_biochemical_low_band"].must_equal 124 } | |
specify { subject["biological_and_biochemical_high_band"].must_equal 126 } | |
specify { subject["behavior_low_band"].must_equal 127 } | |
specify { subject["behavior_high_band"].must_equal 129 } | |
specify { subject["total_low_band"].must_equal 505 } | |
specify { subject["total_high_band"].must_equal 507 } | |
specify { subject["table_name"].must_equal "test_scores_mcat_official_after_jan_31_2015" } | |
specify { subject["test_id"].must_equal id_proxy_for_test_id } | |
specify { subject["mcat_graph_document_id"].must_equal id_proxy_for_mcat_graph_attachment_id } | |
end | |
end | |
describe 'MCAT After Jan 31 2015 scores Graph Attachment' do | |
include TransformationsSpecHelper | |
describe_transformations_for_record("UNICAS/0/AcademicHistory/0/OfficialTests/0/MCATScore2015/111/Attachment/22/mcat_score_attachment") do | |
specify { subject["identifier"].must_equal '22' } | |
specify { subject["filename"].must_equal '580' } | |
specify { subject["url"].must_equal 'C:\Users\gdoli\Sandbox\SAN_TEMP_LOCATION\AAMC\2014\91\580_MCATImage_04bb56b2-ce83-4978-a35b-0c06dbfbdd58.png' } | |
specify { subject["uploaded_at"].must_equal '2015-04-09' } | |
specify { subject["description"].must_equal '580' } | |
specify { subject["scope_type"].must_equal 'mcat_graph' } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment