lib/nakal/dsl.rb in nakal-0.0.2 vs lib/nakal/dsl.rb in nakal-0.0.3
- old
+ new
@@ -1,6 +1,6 @@
-require 'nakal'
+require_relative '../nakal'
module Nakal
module DSL
def current_screen_vs_base_image image_file_name
@@ -27,10 +27,9 @@
Nakal.current_platform::Screen.new(image_name, :capture)
end
def nakal_execute image_name, params = {:delay => nil, :replace_baseline => false}
return if ENV['NAKAL_MODE'].nil?
- Nakal.create_image_dir
sleep params[:delay] unless params[:delay].nil?
capture_screen(image_name) if (ENV['NAKAL_MODE'] == "build") || (params[:replace_baseline] == true)
current_screen_vs_base_image(image_name) if ENV['NAKAL_MODE'] == "compare" && params[:replace_baseline] != true
end
end
\ No newline at end of file