Ported from Rails/Ruby.
Localization is supported: Copy the translations from here and port them to your gettext localization files.
MyApp.DistanceOfTimeHelpers.time_ago_in_words(~N[2015-03-05 21:45:00])
# load into test setup after `require 'capybara/rails'` | |
# some sources for below flags and profile settings | |
# https://stackoverflow.com/questions/43143014/chrome-is-being-controlled-by-automated-test-software/43145088 | |
# https://sqa.stackexchange.com/questions/26051/chrome-driver-2-28-chrome-is-being-controlled-by-automated-test-software-notif | |
# http://stackoverflow.com/questions/12211781/how-to-maximize-window-in-chrome-using-webdriver-python | |
# update sources for new Options object | |
# https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings | |
# https://github.com/teamcapybara/capybara/blob/master/lib/capybara/selenium/driver.rb | |
begin |
require 'graphql/client' | |
require 'graphql/client/http' | |
module PlatformGraphqlClient | |
# Configure GraphQL endpoint using the basic HTTP network adapter. | |
HTTP = GraphQL::Client::HTTP.new('http://localhost:3001/api/graphql') do | |
# def headers(context) | |
# # Optionally set any HTTP headers | |
# { "Access-Token": "user-access-token" } | |
# end |
Ported from Rails/Ruby.
Localization is supported: Copy the translations from here and port them to your gettext localization files.
MyApp.DistanceOfTimeHelpers.time_ago_in_words(~N[2015-03-05 21:45:00])