Skip to content

Commit

Permalink
fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
taicsuzu committed Nov 16, 2016
1 parent 765d10b commit 75d2bec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/support/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ module Shards
end
elsif key.to_s == "targets"
yml << "targets:\n"
unless value.nil?
if value.responds_to?(:each)
value.each do |target, info|
yml << " " << target.to_s << ":\n"
yml << " main: " << info[:main].inspect << "\n"
if info.responds_to?(:each)
info.each do |main, src|
yml << " main: " << src.inspect << "\n"
end
end
end
end
end
Expand Down

0 comments on commit 75d2bec

Please sign in to comment.