Permalink
Browse files

generate source in outer scope

  • Loading branch information...
1 parent a86dad2 commit ec3e41cc78d53035af8877a079d024555d7d4716 @nzoschke committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ferret.rb
View
@@ -27,12 +27,12 @@ def rmerge!(h)
def test(opts={}, &blk)
opts.rmerge!(name: "test", retry: 1, pattern: nil, status: 0, timeout: 180)
+ source = "#{ENV["FILENAME"]}.#{opts[:name]}".gsub(/\//, ".").gsub(/_/, "-")
begin
Timeout.timeout(opts[:timeout]) do
opts[:retry].times do |i|
start = Time.now
- source = "#{ENV["FILENAME"]}.#{opts[:name]}".gsub(/\//, ".").gsub(/_/, "-")
log source: source, i: i, at: :enter
if opts[:bash]

0 comments on commit ec3e41c

Please sign in to comment.