lib/calabash-cucumber/wait_helpers.rb in calabash-cucumber-0.9.163.pre10 vs lib/calabash-cucumber/wait_helpers.rb in calabash-cucumber-0.9.163.pre11

- old
+ new

@@ -21,11 +21,11 @@ :post_timeout => 0, :timeout_message => 'Timed out waiting...', :screenshot_on_error => true}, &block) #note Hash is preferred, number acceptable for backwards compat default_timeout = 30 - timeout=options_or_timeout || default_timeout + timeout = options_or_timeout || default_timeout post_timeout=0 retry_frequency=0.3 timeout_message = nil screenshot_on_error = true @@ -63,10 +63,10 @@ # Validate after taking screenshot if res FileUtils.rm_f(path) return res else - embed(path) + embed(path, 'image/png', msg) raise wait_error(msg) end end def wait_poll(opts, &block)