Skip to content

Commit

Permalink
Improve test suite section of Contributing Guide [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Aug 8, 2016
1 parent 1d5974b commit 3c26986
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ Here's a quick guide:

The test suite runs by default with SQLite3. To run the test suite with PostgreSQL or MySQL, use:

$ DB=postgresql bundle exec rake spec (`DB=pg` & `DB=postgres` work too)
$ DB=pg bundle exec rake spec (`DB=postgres` & `DB=postgresql` work too)
$ DB=mysql bundle exec rake spec

To run only the tests in a particular file: `rspec <path/to/filename>`

$ rspec spec/ransack/search_spec.rb

To run a single test in that file: `rspec <path/to/filename> -e "test name"`

$ rspec spec/ransack/search_spec.rb -e "accepts a context option"

5. Hack away! Please use Ruby features that are compatible down to Ruby 1.9.
Since version 1.5, Ransack no longer maintains Ruby 1.8 compatibility.

Expand Down

0 comments on commit 3c26986

Please sign in to comment.