test/test_helper.rb in lentil-0.1.0 vs test/test_helper.rb in lentil-0.1.1
- old
+ new
@@ -57,9 +57,13 @@
def console_message
page.driver.console_messages.last[:message]
end
+ def console_messages
+ page.driver.console_messages
+ end
+
teardown do
DatabaseCleaner.clean # Truncate the database
Capybara.reset_sessions! # Forget the (simulated) browser state
Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
end