Skip to content

Commit

Permalink
Create dbs via .travis.yml instead of relying on spec_helper doing it
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTron committed Aug 11, 2016
1 parent b09d851 commit e5f459f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ rvm:
- jruby-18mode
- jruby-19mode
- jruby-9.0.1.0
before_script:
- mysql -e 'create database sequel_rails_test;'
- psql -c 'create database sequel_rails_test;' -U postgres
env:
- SEQUEL='~> 3.0'
- SEQUEL='~> 4.0'
Expand Down
6 changes: 0 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@

# Ensure db exists and clean state
begin
require 'sequel_rails/storage'
Ammeter::OutputCapturer.capture_stdout do
SequelRails::Storage.adapter_for(:test).drop
SequelRails::Storage.adapter_for(:test).create
end

require 'sequel/extensions/migration'
load "#{Rails.root}/db/schema.rb.init"
Sequel::Migration.descendants.first.apply Sequel::Model.db, :up
Expand Down

0 comments on commit e5f459f

Please sign in to comment.