discourse/migrations/spec/bin/import_spec.rb
Gerhard Schlager d286c1d5a1
DEV: Prepare new structure for migrations-tooling (#26631)
* 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
2024-04-15 18:47:40 +02:00

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