spec/internal/config/database.yml in sequel-rails-0.9.11 vs spec/internal/config/database.yml in sequel-rails-0.9.12
- old
+ new
@@ -1,7 +1,13 @@
test:
adapter: "<%= ENV["TEST_ADAPTER"] || "postgresql" %>"
database: "<%= ENV["TEST_DATABASE"] || "sequel_rails_test" %>"
+ <% if ENV['TEST_ADAPTER'] != 'sqlite3' %>
owner: "<%= ENV["TEST_OWNER"] || ENV["USER"] %>"
user: "<%= ENV["TEST_USERNAME"] || ENV["USER"] %>"
password: "<%= ENV["TEST_PASSWORD"] %>"
+ <% end %>
+ <% if ENV['TEST_ADAPTER'] =~ /mysql/ %>
+ encoding: "<%= ENV["TEST_ENCODING"] || "utf8" %>"
+ <% elsif ENV['TEST_ADAPTER'] =~ /postgres/ %>
encoding: "<%= ENV["TEST_ENCODING"] || "unicode" %>"
+ <% end %>