Sha256: 2b906126e9ee3e597eb3fff3fba36ed0b40a35db77ce355fa1de2e8ecaf460a6
Contents?: true
Size: 340 Bytes
Versions: 3
Compression:
Stored size: 340 Bytes
Contents
require "spec_helper" describe UsesDatabaseYml do before do ActiveRecord::Base.send(:extend, MultiConfig::ORMs::ActiveRecord) UsesDatabaseYml.establish_connection end it "connects to the alternate database" do UsesDatabaseYml.connection.instance_variable_get(:@config)[:database].split('/').last.should == "db" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_config-1.0.0 | spec/models/uses_database_yml_spec.rb |
multi_config-0.2.2 | spec/models/uses_database_yml_spec.rb |
multi_config-0.2.0 | spec/models/uses_database_yml_spec.rb |