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 amendment = subject.parse(contents) amendment.date.strftime("%Y-%m-%d").should eq Date.parse("2013-03-26").strftime("%Y-%m-%d") amendment.year.should eq 2013 amendment.agency.should eq "Department of the Air Force" amendment.office.should eq "Air Force Materiel Command" amendment.location.should eq "Tinker AFB - OC-ALC/PKO" amendment.zip.should eq "73145-9106" amendment.class_code.should eq "R" amendment.naics_code.should eq "541611" amendment.office_address.should eq "7858 5th Street Ste 1 Tinker AFB OK 73145-9106" amendment.subject.should eq "ISO 9001:2008 AS9100/9110 Registration/Surveillance/Reassessment Audit" amendment.solicitation_number.should eq "FA8101-13-Q-0014" amendment.response_date.strftime("%Y-%m-%d").should eq "2013-03-27" amendment.archive_date.strftime("%Y-%m-%d").should eq "2013-04-26" amendment.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" amendment.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