D

dredd-test-rails

Name Last Update
app Loading commit data...
bin Loading commit data...
config Loading commit data...
db Loading commit data...
lib Loading commit data...
log Loading commit data...
public Loading commit data...
test Loading commit data...
vendor/assets Loading commit data...
.gitignore Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
apiary.apib Loading commit data...
config.ru Loading commit data...

Dredd + Rails example

  1. Run bundle install && rake db:migrate
  2. Install dredd npm install dredd -g
  3. Start rails server with rails s
  4. Run $ dredd apiary.apib http://localhost:3000
  5. You'll see a 201 created in the Rails logs.

  6. Tests will pas and exit status will be 0 :

   $ echo $?
   0