Sha256: 6f06183157279bb9309fb9e2bbac2d13806c419d4cd8174a0e29e9aa821b3d3a

Contents?: true

Size: 1.23 KB

Versions: 10

Compression:

Stored size: 1.23 KB

Contents

Running Sorcery's Specs
=======================
Sorcery is meant to be used with Rails and Sinatra so sample apps have been included in `spec/`.  

Each sample app runs a set of shared specs ( `spec/shared_examples/*_example.rb`) and also includes specs that address framework specific concerns.

Sorcery has one set of specs (`sorcery_crypto_providers_spec.rb`) that can be run outside of any of the frameworks. To run it simply:
    
    cd spec/
    bundle
    bundle exec rake spec

Running Framework Specs
-----------------------
To run framework specs, cd into each directory, bundle, and run the specs. For example, to run the rails3 specs you would:

    cd spec/rails3/
    bundle
    bundle exec rake spec

**Note:** the rails3_mongoid and rails3_mongo_mapper sample apps do require, well, MongoDB. Installing MongoDB on mac osx is easy with homebrew. Seeing as you're reading the readme for running specs, I'll assume you can install MongoDB on your machine. For the purpose of running these tests, I put mongod in verbose mode and in the background so I can see it log to stdout. 

    cd spec/rails3_mongoid
    bundle
    mongod -v &
    bundle exec rake spec
    
    cd spec/rails3_mongo_mapper
    bundle
    mongod -v &
    bundle exec rake spec

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sorcery-0.8.4 spec/README.md
sorcery-0.8.2 spec/README.md
sorcery-0.8.1 spec/README.md
sorcery-0.8.0 spec/README.md
sorcery-0.7.13 spec/README.md
sorcery-0.7.12 spec/README.md
sorcery-0.7.11 spec/README.md
sorcery-0.7.10 spec/README.md
sorcery-0.7.9 spec/README.md
sorcery-0.7.8 spec/README.md