spec/fbo/parser/amendment_handler_spec.rb in fbo-0.0.2 vs spec/fbo/parser/amendment_handler_spec.rb in fbo-0.0.3
- old
+ new
@@ -10,34 +10,39 @@
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 "<p>***All quotes need to be based off of the scope and figures in the PWS and not OASIS<br />***IAW PWS para 1.1(e) the audit will be scheduled in May and must be completed in one week<br />***Organizations OIN 6115237940</p>"
- combine.link_url.should eq "https://www.fbo.gov/spg/USAF/AFMC/OCALCBC/FA8101-13-Q-0014/listing.html"
- combine.link_description.should eq "Link To Document"
- combine.setaside.should eq "Total Small Business"
- combine.pop_country.should eq "US"
- combine.pop_zip.should eq "73145"
- combine.pop_address.should eq "Tinker AFB\nTinker AFB, OK"
+ 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 "<p>***All quotes need to be based off of the scope and figures in the PWS and not OASIS<br />***IAW PWS para 1.1(e) the audit will be scheduled in May and must be completed in one week<br />***Organizations OIN 6115237940</p>"
+ amendment.link_url.should eq "https://www.fbo.gov/spg/USAF/AFMC/OCALCBC/FA8101-13-Q-0014/listing.html"
+ amendment.link_description.should eq "Link To Document"
+ amendment.setaside.should eq "Total Small Business"
+ amendment.pop_country.should eq "US"
+ amendment.pop_zip.should eq "73145"
+ amendment.pop_address.should eq "Tinker AFB\nTinker AFB, OK"
end
- context "when not a sources sought" do
+ it "should return an Amendment notice" do
+ amendment = subject.parse(contents)
+ amendment.should be_instance_of(FBO::Notices::Amendment)
+ end
+
+ context "when not an amendment" do
let(:filename) { File.join(File.dirname(__FILE__), "..", "..", "fixtures", "notices", "presol") }
it "should not recognize other notice content" do
subject.is_amendment?(contents).should_not be_true
end