1 dir = File.dirname(__FILE__)
4 silence_warnings { RAILS_ENV = "test" }
5 require 'action_controller/test_process'
6 require 'action_controller/integration'
7 require 'active_record/base'
8 require 'active_record/fixtures'
11 require File.expand_path("#{dir}/rails/dsl")
13 require File.expand_path("#{dir}/dsl")
14 require File.expand_path("#{dir}/matchers")
16 require File.expand_path("#{dir}/rails/version")
17 require File.expand_path("#{dir}/rails/extensions")
18 require File.expand_path("#{dir}/rails/matchers")
25 # Spec::Rails (a.k.a. RSpec on Rails) is a Ruby on Rails plugin that allows you to drive the development
26 # of your RoR application using RSpec, a framework that aims to enable Behaviour Driven Development
31 # * Use RSpec to independently specify Rails Models, Views, Controllers and Helpers
32 # * Integrated fixture loading
33 # * Special generators for Resources, Models, Views and Controllers that generate Specs instead of Tests.
37 # For people for whom TDD is a brand new concept, the testing support built into Ruby on Rails
38 # is a huge leap forward. The fact that it is built right in is fantastic, and Ruby on Rails
39 # apps are generally much easier to maintain than they might have been without such support.
41 # For those of us coming from a history with TDD, and now BDD, the existing support presents some problems related to dependencies across specs. To that end, RSpec on Rails supports 4 types of specs. We’ve also built in first class mocking and stubbing support in order to break dependencies across these different concerns.
45 # See Spec::Rails::Runner for information about the different kinds of contexts
46 # you can use to spec the different Rails components
48 # See Spec::Rails::Expectations for information about Rails-specific expectations
49 # you can set on responses and models, etc.
53 # RSpec on Rails is licensed under the same license as RSpec itself,