Skip to content

Commit

Permalink
Update spec_helper.rb in project generator for maintaining test db sc…
Browse files Browse the repository at this point in the history
…hema
  • Loading branch information
werdlerk committed Oct 24, 2024
1 parent 5d95285 commit 920bfc4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/sequent/generator/template_project/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@

require_relative '../my_app'

db_config = Sequent::Support::Database.read_config('test')
Sequent::Support::Database.establish_connection(db_config)

Sequent::Support::Database.drop_schema!(Sequent.configuration.view_schema_name)

Sequent::Migrations::ViewSchema.new(db_config: db_config).create_view_tables
Sequent::Test::DatabaseHelpers.maintain_test_database_schema(env: 'test')

module DomainTests
def self.included(base)
Expand Down

0 comments on commit 920bfc4

Please sign in to comment.