Skip to content

Commit 96d2ba3

Browse files
committed
Fix build_uncolorized_expected_output
1 parent d3a7782 commit 96d2ba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/super_diff/csi/uncolorized_document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def colorize_inline(contents, *)
2020
end
2121

2222
def add_part(part)
23-
if !part.is_a?(ResetSequence) && part.is_a?(ColorSequenceBlock)
23+
if !part.is_a?(ResetSequence) && !part.is_a?(ColorSequenceBlock)
2424
super
2525
end
2626
end

spec/integration/rspec_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@
23972397

23982398
context "if color has been disabled" do
23992399
it "does not include the color in the output" do
2400-
program = make_plain_test_program(<<~TEST, color_enabled: true)
2400+
program = make_plain_test_program(<<~TEST, color_enabled: false)
24012401
expect(double).to respond_to(:foo)
24022402
TEST
24032403

0 commit comments

Comments
 (0)