Sha256: b2ec9d2982b897c255d5651cf004baabecfede0a67a9afc4d6a2a10f07eb7f1d
Contents?: true
Size: 757 Bytes
Versions: 11
Compression:
Stored size: 757 Bytes
Contents
Ecrire::Application.initializer 'ecrire.automigrate', after: "active_record.initialize_database" do |app| path = app.paths['db/migrate'].existent ActiveRecord::Migrator.migrations_paths = path if ActiveRecord::Migrator.needs_migration? ActiveRecord::Migrator.migrate(path) end ActiveRecord::Migration.maintain_test_schema! end class ActiveSupport::TestCase include ActiveRecord::TestFixtures ActiveSupport.test_order = :random self.fixture_path = "#{Dir.pwd}/test/fixtures/" fixtures :all end Ecrire::Application.paths.add 'config/secrets', with: Dir.pwd + '/test/secrets.yml' Ecrire::Application.paths.add 'config/database', with: Dir.pwd + '/test/secrets.yml' Dir.chdir "test/theme/theme" do Ecrire::Application.initialize! end
Version data entries
11 entries across 11 versions & 1 rubygems