Skip to content

Commit b3249a7

Browse files
committed
Skip tests with Pry
1 parent 2c815a1 commit b3249a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/block_test.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
require_relative 'test_helper'
66
require 'set'
7-
require 'pry'
7+
begin
8+
require 'pry'
9+
rescue LoadError
10+
end
11+
812

913
class TestBlockContext < Test::Unit::TestCase
1014
include PowerAssertTestHelper
@@ -573,7 +577,7 @@ def test_colorized_pp((_colorize_message, _use_pp))
573577
c.lazy_inspection = false
574578
end
575579
end
576-
end
580+
end if defined?(Pry)
577581

578582
def test_assertion_message_with_string
579583
a, = 0, a # suppress "assigned but unused variable" warning

0 commit comments

Comments
 (0)