View fibo.js
/// RECURSIVE
var fib = function (n) {
return n < 2 ? n : fib(n-1) + fib(n-2);
}
/// MEMOIZED
var memo = [0,1];
var fib = function(n) {
View capybara cheat sheet
=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')