lib/nakal.rb in nakal-0.0.4 vs lib/nakal.rb in nakal-0.0.5
- old
+ new
@@ -10,11 +10,11 @@
module Nakal
class<<self
attr_accessor :device_name, :directory, :platform, :image_location, :img_dir_created, :default_crop_params
- attr_accessor :diff_screens, :embed_screenshot
+ attr_accessor :diff_screens, :embed_screenshot, :timeout
def configure
yield self
end
@@ -37,6 +37,7 @@
config.device_name = "default_device"
config.directory = "baseline_images"
config.default_crop_params = (YAML.load(File.open './config/nakal.yml') rescue {})
config.embed_screenshot = false
config.diff_screens = []
+ config.timeout = 30
end