Sha256: b2e62e7ffb76d9d8b0a4a9797c03c73972e621778ad3240ec7d35fadbdc383a9
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
#!/usr/bin/env ruby -w # # Copyright (c) 2007 Ritchie Young. All rights reserved. # # This file is part of RubySync. # # RubySync is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. # # RubySync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with RubySync; if not, write to the # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA lib_path = File.dirname(__FILE__) + '/../lib' $:.unshift lib_path unless $:.include?(lib_path) || $:.include?(File.expand_path(lib_path)) require 'ruby_sync' require 'test/unit' class ClientConnector < RubySync::Connectors::MemoryConnector end class VaultConnector < RubySync::Connectors::MemoryConnector end class TestPipeline < RubySync::Pipelines::BasePipeline client :client vault :vault allow_in :cn, :givenName, :sn allow_out :id, :name # This is experimental at this stage # map_vault_to_client :cn => :id, # :givenName => calc { :name.split(/\w+/)[0] }, # :sn => calc { :name.split(/\w+/)[1] } end class TestBasePipeline < Test::Unit::TestCase def setup @pipeline = TestPipeline.new @client = @pipeline.client @vault = @pipeline.vault end def test_mappings end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysync-0.0.3 | test/test_base_pipeline.rb |
rubysync-0.0.2 | test/test_base_pipeline.rb |