Latest Screencasts
Acceptance Tests with RSpec and Capybara
Teach Me To Code - 2011-05-23 - free
On the Ruby Rogues podcast I mentioned that I had moved away from Cucumber to RSpec and Capybara for my integration tests. Here’s a demo on how to do some TDD with RSpec and Capybara.
Watch this screencastCanCan: Setting Permissions – Delicious Clone
Teach Me To Code - 2011-02-11 - free
In this installment in the Delicious Clone, we use CanCan to set some permissions on the Bookmarks Controller. Next week, we’ll finish the bookmark creation process and the following, we’ll add styling with SASS.
Watch this screencastSetting Up And Testing Devise – Delicious Clone
Teach Me To Code - 2011-01-21 - free
Because I’m going to be testing in cucumber sections of the site that require a user to be logged in, I decided to get it out of the way. So, in this video, I write a cucumber feature to test login and round it off with a few tests on the devise generated user model [...]
Watch this screencastRails 3.0.3 Setup – Delicious Clone
Teach Me To Code - 2011-01-14 - free
Here is what I’ve done to create this application: Use the ‘rails new’ command to create a rails application Set up the Gemfile Configure the Database Install Cucumber Install Rspec Install Devise Install CanCan Install jQuery Configure Devise Download (HD) 84.2 MB Download (iPod & iPhone) 47.4 MB
Watch this screencastRails 3 – Building a Blog – Part 1: Test Setup & Generators
Teach Me To Code - 2010-06-22 - free
Every good project needs a good setup. In this episode, I set up a github repo, create a new rails application, hook in Cucumber and Rspec, write a Cucumber feature, and write the code to make it pass.
Watch this screencastRSpec Matchers
Teach Me To Code - 2010-06-03 - free
RSpec gives us many powerful tools to make our tests readable. Matchers allow us to provide custom predicates to our should statements that succinctly define the behavior of our code.
Watch this screencastRSpec Subjects
Teach Me To Code - 2010-05-05 - free
RSpec provides an extremely concise way of representing simple tests to be called on new instances of a class or on explicitly defined receiver objects. You can do this by using ‘subjects’ either as defined by the ‘describe’ or the ‘subject’ methods.
Watch this screencastIntroduction to Outside-in Development with Cucumber
Teach Me To Code - 2009-09-06 - free
This is a basic introduction to integration testing with cucumber. In it, I describe how to use cucumber and rspec to implement a feature in a web application, emphasizing the importance of writing tests before code, which is often referred to as TDD (test-driven development) or BDD (behavior-driven development, a refinement of the original TDD). [...]
Watch this screencast