diff options
author | louise <louise> | 2007-10-16 19:50:11 +0000 |
---|---|---|
committer | louise <louise> | 2007-10-16 19:50:11 +0000 |
commit | 254c3a4bcde7d82dd8a3d7cafeb6a8fcf22cd433 (patch) | |
tree | 74f8a3c2b400f265fa986dd8dc2e9cf8154aaf3f /spec/spec_helper.rb | |
parent | 115f71d49e4552874b430afe292aac22f832d5fa (diff) |
Adding rspec config files, initial specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 000000000..e5d4f2259 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,23 @@ +# This file is copied to ~/spec when you run 'ruby script/generate rspec' +# from the project root directory. +ENV["RAILS_ENV"] = "test" +require File.expand_path(File.dirname(__FILE__) + "/../config/environment") +require 'spec/rails' + +Spec::Runner.configure do |config| + config.use_transactional_fixtures = true + config.use_instantiated_fixtures = false + config.fixture_path = RAILS_ROOT + '/spec/fixtures' + + # You can declare fixtures for each behaviour like this: + # describe "...." do + # fixtures :table_a, :table_b + # + # Alternatively, if you prefer to declare them only once, you can + # do so here, like so ... + # + # config.global_fixtures = :table_a, :table_b + # + # If you declare global fixtures, be aware that they will be declared + # for all of your examples, even those that don't use them. +end |