This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Creates a Google Fit sensors. | |
At the moment, provides two measurements: | |
- weight: in KG. | |
- last_updated: entry of the current weight point. | |
Sensor is designed to be flexible and allow customization to add new Google Fit | |
dimensions with minimal effort with relative knowledge of Python and Fitness | |
Rest API. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Default.php 2011-10-25 18:16:52.499473219 +0200 | |
--- TripleSlashParser.php 2011-10-25 19:28:02.027472030 +0200 | |
*************** | |
*** 86,91 **** | |
--- 86,96 ---- | |
const KW_DOCTEST_EXPECTS = 'expects'; | |
/** | |
+ * Short keyword for the doctest expected result | |
+ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def screen_shot_and_save_page | |
require 'capybara/util/save_and_open_page' | |
path = "/#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}" | |
Capybara.save_page body, "#{path}.html" | |
page.driver.render Rails.root.join "#{Capybara.save_and_open_page_path}" "#{path}.png" | |
end | |
begin | |
After do |scenario| | |
screen_shot_and_save_page if scenario.failed? |