This file contains hidden or 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
| 1.SQL (DDL): | |
| -- Создайте базу данных test_guru | |
| CREATE DATABASE test_guru; | |
| -- Таблицу categories с атрибутом title | |
| CREATE TABLE categories ( | |
| id serial PRIMARY KEY, | |
| title varchar(50) NOT null | |
| ); |
This file contains hidden or 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
| 1. GET запрос без параметра | |
| annakutarba$ ncat -C httpbin.org 80 | |
| GET /anything HTTP/1.1 | |
| Host: httpbin.org | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Mon, 01 Oct 2018 14:31:34 GMT |
This file contains hidden or 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
| Given /^I 'visit' the calculator page$/ do | |
| visit '/add' | |
| end | |
| Given(/^I fill in '(.*)' for '(.*)'$/) { |value, field| | |
| field1 = field | |
| fill_in(field1, :with => value) | |
| } | |
| When /^I press '(.*)'$/ do |name| |