Sha256: 6079ad8501b66d2402f94e31a946cf72c90a3c36d28c71acb2a57a910c485dab

Contents?: true

Size: 732 Bytes

Versions: 14

Compression:

Stored size: 732 Bytes

Contents

<%
database_prefix = ENV['LIB_NAME'].presence || "solidus"
%>
<% case ENV['DB']
when 'mysql' %>
test:
  adapter: mysql2
  <% if ENV['CI'] %>
  username: root
  password:
  <% end %>
  database: <%= database_prefix %>_test
  encoding: utf8
  <% unless ENV['DB_HOST'].blank? %>
  host: <%= ENV['DB_HOST'] %>
  <% end %>
<% when 'postgres', 'postgresql' %>
<% db_host = ENV['DB_HOST'] %>
test:
  adapter: postgresql
  database: <%= database_prefix %>_test
  min_messages: warning
<% unless db_host.blank? %>
  host: <%= db_host %>
<% end %>
<% when 'sqlite', '', nil %>
test:
  adapter: sqlite3
  database: db/<%= database_prefix %>_test.sqlite3
  timeout: 10000
<% else %>
  <% raise "Invalid DB specified: #{ENV['DB']}" %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
solidus_core_devise_token_auth-2.8.0.alpha.14 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.13 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.12 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.11 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.10 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.9 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.8 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.7 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.6 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.5 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.4 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.3 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.1 lib/spree/testing_support/dummy_app/database.yml
solidus_core_devise_token_auth-2.8.0.alpha.0 lib/spree/testing_support/dummy_app/database.yml