#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| require "minitest/autorun" | |
| # https://kata-log.rocks/string-calculator-kata | |
| class TddRuby | |
| def add(input) | |
| return 0 if input == "" | |
| delimiter_line, numbers = input.split("\n", 2) if input =~ /^\/\// | |
| numbers ||= input |
| # frozen_string_literal: true | |
| # Valida digito verificador da chave de acesso de Nota Fiscal Eletronica | |
| class Valida | |
| attr_reader :access_key | |
| KEY_SIZE = 44 | |
| VERIFY_SIZE = 43 | |
| MULTIPLIERS = ((2..9).to_a * 6).take(VERIFY_SIZE).reverse |
| PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig asdf install ruby 2.3.3 |
| python -c 'from urllib.parse import quote; print("smb://" + quote("BEN-DESKTOP/HP Color LaserJet CP1510 series PCL6"))' |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">