Skip to content

Instantly share code, notes, and snippets.

View akutarba's full-sized avatar

Anna Kutarba akutarba

  • JetBrains
  • Germany, Munich
View GitHub Profile
1.SQL (DDL):
-- Создайте базу данных test_guru
CREATE DATABASE test_guru;
-- Таблицу categories с атрибутом title
CREATE TABLE categories (
id serial PRIMARY KEY,
title varchar(50) NOT null
);
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
@akutarba
akutarba / add_steps.rb
Created October 10, 2012 15:55
test_gist
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|