Skip to content

Commit ed27fd9

Browse files
authored
Merge pull request #629 from deivid-rodriguez/fix_warnings
Fix warnings
2 parents 57fe753 + c455727 commit ed27fd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
$0 = "thor"
2929
$thor_runner = true
3030
ARGV.clear
31-
Encoding.default_external = Encoding::UTF_8 if RUBY_VERSION > '1.8.7'
31+
Encoding.default_external = Encoding::UTF_8 if RUBY_VERSION > '1.8.7' && RUBY_VERSION < '2.0.0'
3232
Thor::Base.shell = Thor::Shell::Basic
3333

3434
# Load fixtures

spec/script_exit_status_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def thor_command(command)
1212
{:out => w, :err => [:child, :out]})
1313
w.close
1414

15-
junk, exit_status= Process.wait2(pid)
16-
junk= r.read
15+
_, exit_status= Process.wait2(pid)
16+
r.read
1717
r.close
1818

1919
exit_status.exitstatus

0 commit comments

Comments
 (0)