Sha256: d9ab20a3f7c685bc9eacc3d74b3335e10f2eceb47add08b140983478c3ca3551
Contents?: true
Size: 754 Bytes
Versions: 9
Compression:
Stored size: 754 Bytes
Contents
== Creating the test database The default name for the test databases is can be found in the test/lib/database.yml files. By default the tests will run on sqlite3 but can be changed using and ENV['DB'] variable like postresql, mysql or even sqlserver. == Running with Rake The easiest way to run the unit tests is through Rake. The default task runs all the test cases. There is even a rake task called test_dbs that will run all test cases for each DB. == Running by hand Unit tests are located in test directory. If you only want to run a single test suite, or don't want to bother with Rake, you can do so with something like: cd test ; ruby -I "test" versioned_test.rb Likewise you can just hit Command-R if you are using TextMate.
Version data entries
9 entries across 9 versions & 3 rubygems