spec/fbo/parser/modification_handler_spec.rb in fbo-0.0.2 vs spec/fbo/parser/modification_handler_spec.rb in fbo-0.0.3
- old
+ new
@@ -35,9 +35,14 @@
mod.pop_country.should eq "US"
mod.pop_zip.should be_nil
mod.pop_address.should eq "USDA, ARS, EMBUL, BARC\n10300 BALTIMORE AVE.\nBeltsville, MD"
end
+ it "should return a Modification notice" do
+ mod = subject.parse(contents)
+ mod.should be_instance_of(FBO::Notices::Modification)
+ end
+
context "when not a modification" do
let(:filename) { File.join(File.dirname(__FILE__), "..", "..", "fixtures", "notices", "presol") }
it "should not recognize other notice content" do
subject.is_modification?(contents).should_not be_true