lib/gnawrnip/ext/capybara/session.rb in gnawrnip-0.1.2 vs lib/gnawrnip/ext/capybara/session.rb in gnawrnip-0.1.3
- old
+ new
@@ -8,10 +8,10 @@
SAVE_SCREENSHOT_METHODS.each do |method|
alias_method "after_hook_#{method}".to_sym, method
define_method method do |*args, &block|
- Gnawrnip::Animation.add_frame
+ Gnawrnip.photographer.take_shot
send("after_hook_#{method}", *args, &block)
end
end
end
end