<% connection = case ENV["DB"] when "mysql" { :adapter => "mysql", :database => "typus_test" } when "postgresql" { :adapter => "postgresql", :database => "typus_test", :encoding => "unicode" } else { :adapter => "sqlite3", :database => "db/test.sqlite3" } end %> test: adapter: <%= connection[:adapter] %> database: <%= connection[:database] %>