Sha256: 597f49c0009056c90b06bcbe9aa92ee7ac0bfe99b5e432c3f023b92cc8b2f54d
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
require "spec_helper" describe UsesOtherYml do before do ActiveRecord::Base.send(:include, MultiConfig::ORMs::ActiveRecord) UsesOtherYml.config_file = 'other' end it "should be connected to the default database" do UsesOtherYml.connection.instance_variable_get(:@config)[:database].split('/').last.should == "other_db" end it "the @@db_configs should have entry for this class" do UsesOtherYml.send(:class_variable_get, :'@@db_configs').should == {"other" => ["UsesOtherYml"]} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_config-0.1.8 | spec/models/uses_other_yml_spec.rb |