]> git.openstreetmap.org Git - rails.git/blob - spec/spec_helper.rb
More work on export tab.
[rails.git] / spec / spec_helper.rb
1 # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2 # from the project root directory.
3 ENV["RAILS_ENV"] = "test"
4 require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
5 require 'spec'
6 require 'spec/rails'
7
8 require 'ruby-debug'
9
10 Spec::Runner.configure do |config|
11   # If you're not using ActiveRecord you should remove these
12   # lines, delete config/database.yml and disable :active_record
13   # in your config/boot.rb
14   config.use_transactional_fixtures = true
15   config.use_instantiated_fixtures  = false
16   config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
17
18   # == Fixtures
19   #
20   # You can declare fixtures for each example_group like this:
21   #   describe "...." do
22   #     fixtures :table_a, :table_b
23   #
24   # Alternatively, if you prefer to declare them only once, you can
25   # do so right here. Just uncomment the next line and replace the fixture
26   # names with your fixtures.
27   #
28   # config.global_fixtures = :table_a, :table_b
29   #
30   # If you declare global fixtures, be aware that they will be declared
31   # for all of your examples, even those that don't use them.
32   #
33   # == Mock Framework
34   #
35   # RSpec uses it's own mocking framework by default. If you prefer to
36   # use mocha, flexmock or RR, uncomment the appropriate line:
37   #
38   # config.mock_with :mocha
39   # config.mock_with :flexmock
40   # config.mock_with :rr
41 end