save_and_open_page
have_button(locator)
rvm gemset create rails-3.2.3 | |
rvm use 1.9.3@rails-3.2.3 --default | |
gem install rails |
=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') |
def method_name(x1,x2,x3,x4) | |
def method_name(name,mode ='r') | |
def method_name(options) | |
def method_name(*points) | |
def story2(options={}) | |
options = { person: "Yankee Doodle", animal: "Tiger" }.merge(options) | |
"#{options[:person]} went to town, riding on a #{options[:animal]}" | |
end |
class MyModel < ActiveRecord::Base | |
# extends ................................................................... | |
# includes .................................................................. | |
# security (i.e. attr_accessible) ........................................... | |
# relationships ............................................................. | |
# validations ............................................................... | |
# callbacks ................................................................. | |
# scopes .................................................................... | |
# additional config ......................................................... | |
# class methods ............................................................. |
user_name = (user.authenticated? && user.name) || 'guest' |
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'capybara/rspec' | |
require 'factories/seeds' | |
# Requires supporting ruby files with custom matchers and macros, etc, | |
# in spec/support/ and its subdirectories. |
what difference between daily-conversation and other document | |
problem: understanding natural language. | |
40 dialogues | |
with 327 sentences: each average 8 sentences / dialogues | |
google as SMT | |
yahoo as RBMT | |
the way to present the procedure of experiment is amazing ==> Understand deeply | |
what is no significant effect? (by ANOVA, p < 0.05) | |
q:how confidence answer affect the results? ==> solven |
-ea | |
-server | |
-Xms1g | |
-Xmx1g | |
-Xss16m | |
-XX:+DoEscapeAnalysis | |
-XX:+UseCompressedOops | |
-XX:+UnlockExperimentalVMOptions | |
-XX:+UseConcMarkSweepGC | |
-XX:LargePageSizeInBytes=256m |
Fetching gem metadata from https://rubygems.org/......... | |
Fetching version metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using rake 10.4.2 | |
Using RedCloth 4.2.9 | |
Using i18n 0.7.0 | |
Using json 1.8.2 | |
Using minitest 5.5.1 | |
Using thread_safe 0.3.5 | |
Using tzinfo 1.2.2 |