lib/nakal/dsl.rb in nakal-1.0.1 vs lib/nakal/dsl.rb in nakal-1.0.2
- old
+ new
@@ -37,10 +37,10 @@
Nakal.current_platform::Screen.new(image_name, :capture)
end
def nakal_execute relative_location, params = {:delay => nil, :replace_baseline => false, :acceptable_diff => 0.0}
return if ENV['NAKAL_MODE'].nil?
- Nakal.create_image_dir File.dirname(relative_location)
+ Nakal.set File.dirname(relative_location)
screen_name = File.basename(relative_location)
sleep params[:delay] unless params[:delay].nil?
capture_screen(screen_name) if (ENV['NAKAL_MODE'] == "build") || (params[:replace_baseline] == true)
current_screen_vs_base_image(screen_name, params[:acceptable_diff]) if ENV['NAKAL_MODE'] == "compare" && params[:replace_baseline] != true
end
\ No newline at end of file