Commit 6d22b4b85eec6524b27f3065cc8f09f180e8f569
- Date: Mon Mar 17 09:47:02 +0000 2008
- Committer: David Chelimsky (dchelimsky@gmail.com)
- Author: Nikos Dimitrakopoulos (nikosd@vincent.local)
- Commit SHA1: 6d22b4b85eec6524b27f3065cc8f09f180e8f569
- Tree SHA1: 362fd34fcc684a1858dafe231e6844fa0d03c2fb
More documentation in spec_helper.rb template regarding fixtures and also where to look for more information about configuration options.
Commit diff
| |   |
| 28 | 28 | # If you declare global fixtures, be aware that they will be declared |
| 29 | 29 | # for all of your examples, even those that don't use them. |
| 30 | 30 | # |
| 31 | # You can also declare which fixtures to use (for example fixtures for test/fixtures): |
| 32 | # |
| 33 | # config.fixture_path = RAILS_ROOT + '/spec/fixtures/' |
| 34 | # |
| 31 | 35 | # == Mock Framework |
| 32 | 36 | # |
| 33 | 37 | # RSpec uses it's own mocking framework by default. If you prefer to |
| … | … | |
| 40 | 40 | # config.mock_with :mocha |
| 41 | 41 | # config.mock_with :flexmock |
| 42 | 42 | # config.mock_with :rr |
| 43 | # |
| 44 | # == Notes |
| 45 | # |
| 46 | # For more information take a look at Spec::Example::Configuration and Spec::Runner |
| 43 | 47 | end |
| toggle raw diff |
--- a/rspec_on_rails/generators/rspec/templates/spec_helper.rb
+++ b/rspec_on_rails/generators/rspec/templates/spec_helper.rb
@@ -28,6 +28,10 @@ Spec::Runner.configure do |config|
# If you declare global fixtures, be aware that they will be declared
# for all of your examples, even those that don't use them.
#
+ # You can also declare which fixtures to use (for example fixtures for test/fixtures):
+ #
+ # config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
+ #
# == Mock Framework
#
# RSpec uses it's own mocking framework by default. If you prefer to
@@ -36,4 +40,8 @@ Spec::Runner.configure do |config|
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
+ #
+ # == Notes
+ #
+ # For more information take a look at Spec::Example::Configuration and Spec::Runner
end |