Scidea HSFC Policies
Adds policy-related information to user profiles in Scitent's Scidea LMS platform. This gem is only useful in the context of the proprietary Scidea platform.
Usage
Add
scidea-hsfc-policies
to your Scidea Gemfile:# Gemfile gem 'scidea-hsfc-policies'
Add the installation migrations to your
db/migrate/
folder:rails g scidea:hsfc:policies:migrations
Development Environment and Testing
The gem is configured to use rspec and cucumber tests. Because there are so many dependencies upon the Scidea core, rspec and cucumber have been configured to launch an instance of the core application with the plugin's resources tied in. The features and specs of the plugin, however, are the only ones executed when you run cucumber and rspec, respectively.
To set up your environment for testing, perform the following:
In your local Scidea core instance, add the following line to the Gemfile:
# Gemfile gem 'scidea-hsfc-policies', :path => 'LOCAL_PATH_TO_scidea-hsfc-policies'
Add the scidea gem to the scidea-hsfc-policies Gemfile and add the path to your Scidea core instance. Then, copy the contents of the Scidea core Gemfile after
gemspec
, and paste it to the end of the Gemfile in the scidea-hsfc-policies code. When you run rspec/cucumber, they require this Gemfile, thus you need all of the gems that Scidea core requires as well.source 'http://rubygems.org' gemspec gem 'scidea', :path => 'LOCAL_PATH_TO_SCIDEA-CORE' # contents of scidea core Gemfile here....
From scidea-hsfc-policies, you can run rspec
and cucumber
. Note that FactoryGirl factories from the Scidea core are included in the testing runtime and added to whatever you include in spec/factories
. The database configuration from the Scidea core will also be used. You must run all rake operations for that database in the context of the Scidea core folder. They will not work in the scidea-hsfc-policies folder.
Copyright 2012 Scitent, Inc. See the file MIT-LICENSE for terms.