lib/snapshot/snapshot_file.rb in snapshot-0.4.13 vs lib/snapshot/snapshot_file.rb in snapshot-0.5.0
- old
+ new
@@ -66,9 +66,10 @@
when :html_path
raise "The `html_path` options was removed from snapshot. The default location is now the screenshots path. Please remove this line from your 'Snapfile'.".red
# Blocks
when :setup_for_device_change, :teardown_device, :setup_for_language_change, :teardown_language
raise "#{method_sym} needs to have a block provided." unless block_given?
+ Helper.log.warn("'setup_for_language_change' and 'teardown_language' are deprecated.".yellow) if [:setup_for_language_change, :teardown_language].include?method_sym
@config.blocks[method_sym] = block
else
Helper.log.error "Unknown method #{method_sym}"
end
end
\ No newline at end of file