was trying to add a comment •I’m getting an undefined method for Nil and I can’t add a comment •I looked at comments_controller.rb and I can’t figure out what is nil on line 39
• Post large blocks of text to https://gist.github.com • Post multiple related files and a stack trace • Name your files with the proper extension: .rb .yaml .txt • So that syntax highlighting works
software by doing it and helping others do it. Through this work we have come to value: Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan That is, while there is value in the items on the right, we value the items on the left more. http://agilemanifesto.org/
Rails • Unit == Model • Functional == Controller • Integration (system wide, including Views) • Acceptance (behavior of the system • Regression (any of the above, when you find a bug)
• Using tests to drive the design • Behavior Driven Development ( BDD ) • Emphasizes outside-in development from business goals • Uses examples (user stories) • Creates a shared language between developer and client (management)
# Clicking links and buttons click_link('id-of-link') click_link('Link Text') click_button('Save') click_on('Link Text') # Click either a link or a button click_on('Button Value') source: https://gist.github.com/zhengjia/428105
• page.body • html • save_and_open_page • opens the page's html in your browser (needs the launchy gem) http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Session