Sha256: 378f161db57aae1c13f5c5058f143f7295bd4a0c507c87f15a91b298d036cd71
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
require 'spec_helper' describe ActiveRecord::Base, "methods" do before do ActiveRecord::Base.send(:include, MultiConfig::ORMs::ActiveRecord) end it "should have configurations" do ActiveRecord::Base.configurations.should_not == {} end it "should have multi config methods" do ActiveRecord::Base.singleton_methods.should include(RUBY_VERSION =~ /^1\.8/ ? 'config_file=' : :'config_file=') end it "should have @@db_config class variable set" do ActiveRecord::Base.send(:class_variable_get, '@@db_configs').should == {} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
multi_config-0.1.8 | spec/active_record_spec.rb |
multi_config-0.1.6 | spec/active_record_spec.rb |
multi_config-0.1.1 | spec/active_record_spec.rb |
multi_config-0.1.0 | spec/active_record_spec.rb |