Last updated: 03/11/2012 09:18:34 AM
DuckTest automagically runs tests by watching directories and files for changes. You define the files that are watched and ran using directives in a configuration file specific to your environment: test, development, production (BTW, running tests in production is not recommended). All attributes are configured inside a DuckTest.config block.Watched files are broken down into two categories: runnable and non-runnable.To understand all of the moving parts, it is important to explain how files are watched. The...
Last updated: 03/10/2012 04:48:02 AM
My blog posts as well as screen casts tend to be straight to the point. Although I talk slow and stutter a bit I like to save time. You will notice that most of my posts are related to Rails apps. In the upper right corner on the page of each post you will see a Support Area. Most, but, not all posts will have links to videos, related references, and support files that you...
Last updated: 03/09/2012 04:55:07 AM
So, today I decided to install the latest version of rtorrent. I dug around most of the doc found at:http://libtorrent.rakshasa.no/and attempted to install stable version 0.8.0, however, I could not get it to compile, so, I decided to give the unstable version 0.9.0 a shot.I figured it would compile and install without a hitch as I have just have many development packages installed on my machine. There were two packages I needed to install to...
Last updated: 03/03/2012 05:38:38 PM
Determining the autoload path for your app at runtime is pretty simple.Create a Rails app.Edit config/application.rb and add the lib directory to the autoload paths.Fire up the Rails consoleAt the prompt, type:and you should see something like the following:It will work in any Rails environment: test, development, production....
Last updated: 02/29/2012 04:51:13 PM
So, I decided to create a Rails Edge app today to run some tests against the latest upcoming release. As per the Rails Guides, all that should be required to create a Rails app is the following command:However, things didn't work out as planned. Bundler was failing due to some type of dependency problem.I did not even try to figure out the source of the problem. I simply choose a workaround. All you need to...
Last updated: 02/22/2012 11:05:53 AM
This is basically the same as my original blog post Duck Test Quick Start. The only difference is that I am running it on a Mac. I love the Mac. I wish I could afford one.Create a new rails app named test.comEdit test.com/Gemfile and add the following to your test groupRun bundleGenerate a scaffold with some tests, then, migrate and prepare the test environmentRun the Rails consoleEdit one of the test files: test/unit/book_test.rbLook at the...
Last updated: 02/22/2012 11:05:30 AM
Duck Test facilitates running tests within the Rails IRB console. Running tests are essential to solid application development and the standard Rails mechanism for running tests does a fine job. However, as the Rails framework has matured coupled with the plethora of gems available to developers the start up of the Rails environment can increase to a point that can make TDD a bit painful. Ducktest runs within the Rails console allowing the developer to...