(The distinction between the two types of embedded Ruby is that <%...
...%> executes the code inside, while <%=...
...%> executes it and inserts...
visit '/static_pages/home' expect(page).to have_content('Sample App') Visit simulates visiting the website (provided by capybara), and capybara also...
$ rails generate integration_test static_pages
By the way, previous versions of Rails used PUT in place of PATCH, and Rails 4.0 still supports this usage...
$ rake db:migrate VERSION=0
Create a new rails app without the default unit tests directory.
Best results in other decks
Say we want to filter a table matching pairs of values. E.g. For each account we want to select all...