Skip to content
This repository
Browse code

adding some documentation for running specs with different model adap…

…ters
  • Loading branch information...
commit f8760b7149a1c6ac7edd8460bb9c6134d3905cde 1 parent 2dc2a57
Ryan Bates authored

Showing 1 changed file with 24 additions and 0 deletions. Show diff stats Hide diff stats

  1. +24 0 spec/README.rdoc
24 spec/README.rdoc
Source Rendered
... ... @@ -0,0 +1,24 @@
  1 += CanCan Specs
  2 +
  3 +== Running the specs
  4 +
  5 +To run the specs first run the +bundle+ command to install the necessary gems and the +rake+ command to run the specs.
  6 +
  7 + bundle
  8 + rake
  9 +
  10 +The specs currently require Ruby 1.8.7. Ruby 1.9.2 support will be coming soon.
  11 +
  12 +
  13 +== Model Adapters
  14 +
  15 +CanCan offers separate specs for different model adapters (such as Mongoid and Data Mapper). By default it will use Active Record but you can change this by setting the +MODEL_ADAPTER+ environment variable before running. You can run the +bundle+ command with this as well to ensure you have the installed gems.
  16 +
  17 + MODEL_ADAPTER=data_mapper bundle
  18 + MODEL_ADAPTER=data_mapper rake
  19 +
  20 +The different model adapters you can specify are:
  21 +
  22 +* active_record (default)
  23 +* data_mapper
  24 +* mongoid

0 comments on commit f8760b7

Please sign in to comment.
Something went wrong with that request. Please try again.