# coding: utf-8 $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') require 'onix' require 'stringio' context "ONIX::Writer" do before(:each) do @output = StringIO.new end specify "should output the correct xml metadata" do header = ONIX::Header.new writer = ONIX::Writer.new(@output, header) writer.end_document lines = @output.string.split("\n") # xml declaration lines[0][0,5].should eql("