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
#!/usr/bin/ruby | |
@@path = '/opt/tmp_tables_list' | |
@@remove_except_table = 'localPreferences' | |
class Remover | |
def initialize | |
@tables = Array.new | |
end |
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
require 'sinatra/base' | |
require 'sinatra/reloader' | |
require 'sinatra/flash' | |
require 'rubygems' | |
require 'data_mapper' | |
require './models/user' | |
require './models/visit' |
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
Task: | |
Implement site with main page + login page (using DM, of course). | |
Given user comes to site | |
When he navigates to /login | |
Then he sees inputs for login and password with button 'sign up' | |
Given user on login page | |
When he enters his name & password | |
When there's record of him in db and pass/login match |