spec/fbo/parser/award_handler_spec.rb in fbo-0.0.2 vs spec/fbo/parser/award_handler_spec.rb in fbo-0.0.3
- old
+ new
@@ -39,9 +39,14 @@
award.email_description.should eq "MICC - Fort Leonard Wood"
award.setaside.should be_nil
award.correction.should be_false
end
+ it "should return an Award notice" do
+ award = subject.parse(contents)
+ award.should be_instance_of(FBO::Notices::Award)
+ end
+
context "when not an award" do
let(:filename) { File.join(File.dirname(__FILE__), "..", "..", "fixtures", "notices", "presol") }
it "should not recognize other notice content" do
subject.is_award?(contents).should_not be_true