discourse/migrations/spec/import_spec.rb
Jarek Radosz 3736d66f17
DEV: Extensively use exception: true in system() (#25911)
Specifically fixes a bug in smoke-test where it would just move on after failing to install latest js dependencies with yarn.
2024-02-27 11:33:28 +01:00

12 lines
298 B
Ruby

# frozen_string_literal: true
RSpec.describe "Migrations::Import" do
subject(:cli) { system("migrations/import", exception: true) }
it "works" do
expect { cli }.to output(
include("Importing into Discourse #{Discourse::VERSION::STRING}"),
).to_stdout_from_any_process
end
end