mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Output inline is set to true in the plugin.
Change the reporter to just read the option. Pass output_inline where needed in tests.
This commit is contained in:
parent
11a3e02237
commit
54f3a18eec
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ module Rails
|
|||
|
||||
private
|
||||
def output_inline?
|
||||
options.fetch(:output_inline, true)
|
||||
options[:output_inline]
|
||||
end
|
||||
|
||||
def fail_fast?
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
|
|||
|
||||
setup do
|
||||
@output = StringIO.new
|
||||
@reporter = Rails::TestUnitReporter.new @output
|
||||
@reporter = Rails::TestUnitReporter.new @output, output_inline: true
|
||||
end
|
||||
|
||||
test "prints rerun snippet to run a single failed test" do
|
||||
|
@ -72,7 +72,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test "outputs skipped tests inline if verbose" do
|
||||
verbose = Rails::TestUnitReporter.new @output, verbose: true
|
||||
verbose = Rails::TestUnitReporter.new @output, verbose: true, output_inline: true
|
||||
verbose.record(skipped_test)
|
||||
verbose.report
|
||||
|
||||
|
|
Loading…
Reference in a new issue