mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 22:53:56 +08:00
d286c1d5a1
* Moves existing files around. All essential scripts are in `migrations/bin`, and non-essential scripts like benchmarks are in `migrations/scripts` * Dependabot configuration for migrations-tooling (disabled for now) * Updates test configuration for migrations-tooling * Shorter configuration for intermediate DB for now. We will add the rest table by table. * Adds a couple of benchmark scripts * RSpec setup especially for migrations-tooling and the first tests * Adds sorting/formatting to the `generate_schema` script
16 lines
407 B
Ruby
16 lines
407 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe "Migrations::Import" do
|
|
subject(:cli) do
|
|
# rubocop:disable Discourse/NoChdir
|
|
Dir.chdir("migrations") { system("bin/import", exception: true) }
|
|
# rubocop:enable Discourse/NoChdir
|
|
end
|
|
|
|
it "works" do
|
|
expect { cli }.to output(
|
|
include("Importing into Discourse #{Discourse::VERSION::STRING}"),
|
|
).to_stdout_from_any_process
|
|
end
|
|
end
|