#157 RSpec Matchers & Macros
You can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.
- Download:
- source codeProject Files in Zip (119 KB)
- mp4Full Size H.264 Video (33.3 MB)
- m4vSmaller H.264 Video (21.1 MB)
- webmFull Size VP8 Video (56.9 MB)
- ogvFull Size Theora Video (47 MB)
Upgrading to Rails 4
With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.
(12 minutes)
Fast Tests
A slow test suite can put a damper on test-driven development. In this episode I show a variety of ways to optimize specs including: selective testing, preloading Rails, and testing outside of Rails.
(17 minutes)
Custom App Generators (revised)
Learn how to customize the Rails app generator to fit your preference. This episode shows how to do this using .railsrc file, app templates, app builders, RailsWizard, and AppScrolls.
(10 minutes)
Site-Wide Announcements (revised)
Here I show how to add an announcement message at the top of every page in the application and allow the user to permanently hide it. This is all done test-first and even includes testing the JavaScript behavior.
(11 minutes)
Testing JavaScript with PhantomJS
PhantomJS allows us to test JavaScript without going through a browser window. Here I show how to do this using Capybara and Poltergeist. I also give some tips on handling database transactions and skipping javascript tests.
(10 minutes)