-
Notifications
You must be signed in to change notification settings - Fork 30
Lesson: set up your Rails Application to use rspec
pgwillia edited this page Apr 10, 2014
·
5 revisions
This Tutorial is known to work with hydra version 6.1.0, 6.2.0.
Please update this wiki to reflect any other versions that have been tested.
- Set up a Rails application to use RSpec
We strongly recommend building a habit of using Test Driven Development. Most people using Hydra use RSpec for Test Driven Development. Also, RSpec tests are required with any contributions to any of the core Hydra gems. Here's how to set up your Rails application to use RSpec for testing.
Ensure your Gemfile includes rspec-rails
, e.g.:
group :development, :test do
gem "rspec-rails"
end
If you had to add rspec-rails
, run bundle install
$ bundle install
On the Command line
rails generate rspec:install
git add .
git commit -m "added rspec"
Return to the Dive into Hydra page.