Sha256: e8de0f0ce26eb0bc4da9366a4fc27388c69a8826f822d3632030351af7065d6f
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# Copyright:: (c) Autotelik Media Ltd 2011 # Author :: Tom Statter # Date :: Aug 2011 # License:: MIT # # Details:: Specs for MethodMapper aspect of Active Record Loader # MethodMapper provides the bridge between 'strings' e.g column headings # and a classes different types of assignment operators # require File.dirname(__FILE__) + '/spec_helper' describe 'Method Mapping' do before(:all) do db_connect( 'test_file' ) # , test_memory, test_mysql # load our test model definitions - Project etc require ifixture_file('test_model_defs') migrate_up end before(:each) do MethodDictionary.clear MethodDictionary.find_operators( Project ) MethodDictionary.find_operators( Milestone ) MethodDictionary.build_method_details( Project ) MethodDictionary.build_method_details( Milestone ) end it "should find a set of methods based on a list of column names" do pending("key API - map column headers to set of methods") @method_mapper.map_inbound_to_methods( load_object_class, @headers ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datashift-0.2.1 | spec/method_mapper_spec.rb |