lib/gnawrnip.rb in gnawrnip-0.3.0 vs lib/gnawrnip.rb in gnawrnip-0.3.1

- old
+ new

@@ -2,12 +2,10 @@ require 'turnip_formatter' require 'gnawrnip/rspec' require 'gnawrnip/photographer' module Gnawrnip - SCREENSHOT_OUTPUT_DIR = File.expand_path('./gnawrnip_tmp') - class << self # # [Boolean] Whether to make animation GIF # attr_accessor :make_animation @@ -33,18 +31,12 @@ end def ready! require 'gnawrnip/ext/capybara/session' if animation? require 'gnawrnip/step_screenshot' - - FileUtils.mkdir_p(SCREENSHOT_OUTPUT_DIR) end - def finish! - FileUtils.rm_rf(SCREENSHOT_OUTPUT_DIR) - end - def animation? make_animation end def photographer @@ -56,8 +48,8 @@ end end end Gnawrnip.configure do |c| - c.make_animation = true - c.max_frame_size = nil + c.make_animation = true + c.max_frame_size = nil end