require File.join( File.dirname(__FILE__), '../lib/graybook.rb' ) require File.join( File.dirname(__FILE__), 'test_helper.rb' ) require 'test/unit' require 'mocha' class TestGraybookExporterXml < Test::Unit::TestCase include TestHelper def test_export exporter = Graybook::Exporter::Xml.new contacts = [{ :name => 'Test', :email => 'test@domain.com' }] assert_equal "Testtest@domain.com", exporter.export(contacts) end end