mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_workspace.rb: prefer using skip
rather than ignoring test definition to know untestability when
executing test with `-v`.
Also this simplifies check using `MiniTest::Unit::Guard#windows?`.
This change is suggested by @MSP-Greg here:
7128849c8c (commitcomment-25836745)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87bebfb9fa
commit
96d576733a
1 changed files with 10 additions and 10 deletions
|
@ -32,8 +32,9 @@ module TestIRB
|
|||
end
|
||||
end
|
||||
|
||||
unless /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
def test_code_around_binding_with_existing_unreadable_file
|
||||
skip 'chmod cannot make file unreadable on windows' if windows?
|
||||
|
||||
Tempfile.create do |f|
|
||||
code = "IRB::WorkSpace.new(binding)\n"
|
||||
f.print(code)
|
||||
|
@ -45,7 +46,6 @@ module TestIRB
|
|||
assert_equal(nil, workspace.code_around_binding)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_code_around_binding_with_script_lines__
|
||||
with_script_lines do |script_lines|
|
||||
|
|
Loading…
Reference in a new issue