From 253a9b20c7a6f224374f352f83e58dab8886fa00 Mon Sep 17 00:00:00 2001 From: Whitney Young Date: Mon, 11 Nov 2013 14:54:41 -0300 Subject: [PATCH] Adding documentation for testing. --- README.rdoc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 4f345986d..8c9f9148b 100644 --- a/README.rdoc +++ b/README.rdoc @@ -289,7 +289,23 @@ Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇☇☇ == Contributing to Kaminari -* Fork, fix, then send me a pull request. +Fork, fix, then send a pull request. + +To run the test suite locally against all supported frameworks: + + % bundle install + % rake spec:all + +To target the test suite against one framework: + + % rake spec:active_record_40 + +You can find a list of supported spec tasks by running rake -T. You may also find it useful to run a specific test +for a specific framework. To do so, you'll have to first make sure you have bundled everything for that configuration, +then you can run the specific test: + + % BUNDLE_GEMFILE='gemfiles/active_record_40.gemfile' bundle install + % BUNDLE_GEMFILE='gemfiles/active_record_40.gemfile' bundle exec rspec ./spec/requests/users_spec.rb == Copyright