mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
fix migrations, acceptance testing for auth, 32 char username limit
This commit is contained in:
parent
fdd4017523
commit
5dfc715148
18 changed files with 247 additions and 125 deletions
|
@ -20,7 +20,7 @@ Bundler.require :test
|
|||
require 'minitest/autorun'
|
||||
require 'sidekiq/testing/inline'
|
||||
|
||||
Account.bcrypt_cost = BCrypt::Engine::MIN_COST
|
||||
Site.bcrypt_cost = BCrypt::Engine::MIN_COST
|
||||
|
||||
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new
|
||||
|
||||
|
@ -29,8 +29,11 @@ Sequel.extension :migration
|
|||
|
||||
Sequel::Migrator.apply DB, './migrations', 0
|
||||
Sequel::Migrator.apply DB, './migrations'
|
||||
Server.create ip: '127.0.0.1', slots_available: 999999
|
||||
|
||||
Fabrication.configure do |config|
|
||||
config.fabricator_path = 'tests/fabricators'
|
||||
config.path_prefix = DIR_ROOT
|
||||
end
|
||||
end
|
||||
|
||||
I18n.enforce_available_locales = true
|
Loading…
Add table
Add a link
Reference in a new issue