Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add some notes on setting up automated testing

Figuring out some of these steps took quite some time, so it
seems they would be worth having in the README.
  • Loading branch information...
commit 55fb22e598426a9da4fdc310d4242c792b670215 1 parent 398a1ff
@mhl mhl authored
Showing with 25 additions and 1 deletion.
  1. +25 −1
@@ -75,4 +75,28 @@ packages listed in `config/packages` are all installed.
###To load a new binary Postgres dump file:
1. Create the file from an existing database with ```pg_dump -p [Postgres port number] --schema=public -Fc YOURDB > YOURDB.sql.dump```
-2. ```rake db:load_from_binary FILE=YOURDB.sql.dump```
+2. ```rake db:load_from_binary FILE=YOURDB.sql.dump```
+###Running the tests
+If you want to run the RSpec tests continuously while developing, you
+can do this using ZenTest. You can install ZenTest and support for
+Rails with:
+ gem install ZenTest autotest-rails
+Then you can run the following command in the fixmytransport directory:
+ RSPEC=true autotest
+If you see many gem-related deprecation warnings when running the
+tests, such as:
+ NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
+ Gem.source_index called from /home/mark/fixmytransport/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
+... then your version of RubyGems is much more recent that the
+components of Rails in the `vendor` subdirectory. One solution to
+this is to downgrade to an earlier version of RubyGems with:
+ gem update --system 1.6.2
Please sign in to comment.
Something went wrong with that request. Please try again.