Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Nov 17, 2014
1 parent 5876dc0 commit 12ea50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pork/isolate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def isolate name
executor.include(*mods)
# TODO: define instance methods from meths

_, desc, block = paths[0..-2].inject(tests) do |ts, index|
_, desc, test = paths[0..-2].inject(tests) do |ts, index|
ts.first(index).each do |(type, block, _)|
case type
when :before
Expand All @@ -32,7 +32,7 @@ def isolate name
ts[index][1].tests
end[paths.last]

executor.would(desc, &block)
executor.would(desc, &test)
executor
end

Expand Down

0 comments on commit 12ea50e

Please sign in to comment.