Name: wfs_rails
Owner: Stanford University Digital Library
Description: A Rails engine for testing/using Stanford WorkFlowServices. See https://github.com/sul-dlss-labs/workflow-server-rails
Created: 2015-11-15 21:04:47.0
Updated: 2018-05-15 15:00:16.0
Pushed: 2018-05-15 15:00:16.0
Size: 57
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
WFS Rails is a Rails engine for testing and development with Stanford's DOR Worklow Services.
The Rails engine stubs several of the most frequently
used Workflow Services routes (but not all of them). See config/routes.rb
for implemented routes.
Add to Gemfile
'wfs_rails'
Then bundle install
Next add this to config/routes.rb
:
s.application.routes.draw do
unt WfsRails::Engine => '/'
Finally run:
wfs_rails:install:migrations
You may choose to use Capybara::Discoball which expects to use your application's Rails database as storage for Workflow Service data. The advantage of using WFS Rails is that you don't need to access any external Workflow APIs during development or testing (this is especially useful when building on Travis).
To set up and use WFS Rails in your project, take a look at this Argo pull request:
https://github.com/sul-dlss/argo/pull/317/files