Posts Tagged “testing”
2013-10-06 Learning Ruby with Tests (Part 2)
The second part expands on the code created in round 1 and fleshes out the existing Vehicle class. It introduces a new test helper, instance variables, explains predicates and the overrides Vehicle's initialize method.
2013-09-02 Learning Ruby with Tests (Part 1)
The first part covers a very basic class and a simple, home-made test framework, that actually doesn't deserve the name 'framework' at this stage, yet.
2011-04-20 assert_select from String
Rails provides assert_select to check for specific contents in a rendered view. We can leverage the logic to make it work out of a rendered view context.