Updated to latest rspec
[gitorious:georgyos-clone.git] / vendor / plugins / rspec-rails / lib / spec / rails / example / rails_example_group.rb
1 require 'spec/interop/test'
2
3 ActionView::Base.cache_template_extensions = false
4
5 module Spec
6   module Rails
7
8     module Example
9       class RailsExampleGroup < Test::Unit::TestCase
10         
11         # Rails >= r8570 uses setup/teardown_fixtures explicitly
12         before(:each) do
13           setup_fixtures if self.respond_to?(:setup_fixtures)
14         end
15         after(:each) do
16           teardown_fixtures if self.respond_to?(:teardown_fixtures)
17         end
18         
19         include Spec::Rails::Matchers
20         include Spec::Rails::Mocks
21         
22         Spec::Example::ExampleGroupFactory.default(self)
23         
24       end
25     end
26   end
27 end