aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/test_unit
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:16:09 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:16:09 +0200
commit783763bde97bea3d0c200038453008a8cfff1e88 (patch)
tree898d547f9d4c4e767362e6c6dc722b98fec4c07b /railties/test/test_unit
parent69ab3eb57e8387b0dd9d672b5e8d9185395baa03 (diff)
downloadrails-783763bde97bea3d0c200038453008a8cfff1e88.tar.gz
rails-783763bde97bea3d0c200038453008a8cfff1e88.tar.bz2
rails-783763bde97bea3d0c200038453008a8cfff1e88.zip
applies new string literal convention in railties/test
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'railties/test/test_unit')
-rw-r--r--railties/test/test_unit/reporter_test.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/test/test_unit/reporter_test.rb b/railties/test/test_unit/reporter_test.rb
index 0d64b48550..875bc954eb 100644
--- a/railties/test/test_unit/reporter_test.rb
+++ b/railties/test/test_unit/reporter_test.rb
@@ -1,6 +1,6 @@
-require 'abstract_unit'
-require 'rails/test_unit/reporter'
-require 'minitest/mock'
+require "abstract_unit"
+require "rails/test_unit/reporter"
+require "minitest/mock"
class TestUnitReporterTest < ActiveSupport::TestCase
class ExampleTest < Minitest::Test
@@ -33,7 +33,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
@reporter.record(passing_test)
@reporter.record(skipped_test)
@reporter.report
- assert_no_match 'Failed tests:', @output.string
+ assert_no_match "Failed tests:", @output.string
assert_rerun_snippet_count 0
end
@@ -87,7 +87,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
@reporter.record(failed_test)
@reporter.report
- assert_no_match 'Failed tests:', @output.string
+ assert_no_match "Failed tests:", @output.string
end
test "fail fast interrupts run on failure" do
@@ -100,7 +100,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
rescue Interrupt
interrupt_raised = true
ensure
- assert interrupt_raised, 'Expected Interrupt to be raised.'
+ assert interrupt_raised, "Expected Interrupt to be raised."
end
end
@@ -114,7 +114,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
rescue Interrupt
interrupt_raised = true
ensure
- assert interrupt_raised, 'Expected Interrupt to be raised.'
+ assert interrupt_raised, "Expected Interrupt to be raised."
end
end
@@ -122,7 +122,7 @@ class TestUnitReporterTest < ActiveSupport::TestCase
fail_fast = Rails::TestUnitReporter.new @output, fail_fast: true
fail_fast.record(skipped_test)
- assert_no_match 'Failed tests:', @output.string
+ assert_no_match "Failed tests:", @output.string
end
test "outputs colored passing results" do