require 'spec_helper' describe FBO::Parser::AmendmentHandler do let(:filename) { File.join(File.dirname(__FILE__), "..", "..", "fixtures", "notices", "amdcss") } let(:file) { File.new(filename) } let(:contents) { file.read } subject { FBO::Parser::AmendmentHandler } it "should recognize amendment content" do subject.is_amendment?(contents).should be_true end it "should parse all fields correctly" do combine = subject.parse(contents) combine.date.strftime("%Y-%m-%d").should eq Date.parse("2013-03-26").strftime("%Y-%m-%d") combine.year.should eq 2013 combine.agency.should eq "Department of the Air Force" combine.office.should eq "Air Force Materiel Command" combine.location.should eq "Tinker AFB - OC-ALC/PKO" combine.zip.should eq "73145-9106" combine.class_code.should eq "R" combine.naics_code.should eq "541611" combine.office_address.should eq "7858 5th Street Ste 1 Tinker AFB OK 73145-9106" combine.subject.should eq "ISO 9001:2008 AS9100/9110 Registration/Surveillance/Reassessment Audit" combine.solicitation_number.should eq "FA8101-13-Q-0014" combine.response_date.strftime("%Y-%m-%d").should eq "2013-03-27" combine.archive_date.strftime("%Y-%m-%d").should eq "2013-04-26" combine.contact_info.should eq "Matthew Kinney, Contract Specialist, Phone 4057393745, Email matthew.kinney@tinker.af.mil - Kimberly L DeLong, Contracting Officer, Phone (405) 739-3514, Fax (405) 739-7957, Email kimberly.delong2@tinker.af.mil" combine.description.should eq "
***All quotes need to be based off of the scope and figures in the PWS and not OASIS
***IAW PWS para 1.1(e) the audit will be scheduled in May and must be completed in one week
***Organizations OIN 6115237940