# coding: utf-8 require File.dirname(__FILE__) + '/spec_helper.rb' 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("