save_and_open_page
have_button(locator)
# Navigating | |
visit('/projects') | |
visit(post_comments_path(post)) | |
# Clicking links and buttons | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
[ | |
"Afghanistan", "Aland Islands", "Albania", "Algeria", | |
"American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", | |
"Antigua", "Argentina", "Armenia", "Aruba", "Australia", "Austria", | |
"Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Barbuda", | |
"Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", | |
"Bosnia", "Botswana", "Bouvet Island", "Brazil", | |
"British Indian Ocean Trty.", "Brunei Darussalam", "Bulgaria", | |
"Burkina Faso", "Burundi", "Caicos Islands", "Cambodia", "Cameroon", | |
"Canada", "Cape Verde", "Cayman Islands", "Central African Republic", |
t = 236 # seconds | |
Time.at(t).utc.strftime("%H:%M:%S") | |
=> "00:03:56" | |
# Reference | |
# http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
const webpack = require("webpack"); | |
const path = require("path"); | |
// We'll set up some paths for our generated files and our development server | |
const staticDir = path.join(__dirname, "."); | |
const destDir = path.join(__dirname, "../priv/static"); | |
const publicPath = "/"; | |
// We'll be using the ExtractTextPlugin to extract any required CSS into a | |
// single CSS file |