spec/fbo/parser/unknown_handler_spec.rb in fbo-0.0.2 vs spec/fbo/parser/unknown_handler_spec.rb in fbo-0.0.3
- old
+ new
@@ -6,9 +6,14 @@
let(:filename) { File.join(File.dirname(__FILE__), "..", "..", "fixtures", "notices", "snote") }
let(:file) { File.new(filename) }
let(:contents) { file.read }
let(:unknown) { subject.parse(contents) }
+ it "should return an Unknown notice" do
+ unknown = subject.parse(contents)
+ unknown.should be_instance_of(FBO::Notices::Unknown)
+ end
+
it "should parse out the type of the notice" do
unknown.type.should eq "SNOTE"
end
it "should capture the complete content of the notice" do