changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec_on_rails/lib/spec/rails.rb

changeset 16: 01fd3f10ae84
author: moriq@moriq.com
date: Mon Mar 10 10:13:18 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec_on_rails
1silence_warnings { RAILS_ENV = "test" }
2
3require 'application'
4require 'action_controller/test_process'
5require 'action_controller/integration'
6require 'active_record/fixtures' if defined?(ActiveRecord::Base)
7require 'test/unit'
8
9require 'spec'
10
11require 'spec/rails/extensions'
12require 'spec/rails/example'
13require 'spec/rails/version'
14require 'spec/rails/matchers'
15
16module Spec
17 # = Spec::Rails
18 #
19 # Spec::Rails (a.k.a. RSpec on Rails) is a Ruby on Rails plugin that allows you to drive the development
20 # of your RoR application using RSpec, a framework that aims to enable Example Driven Development
21 # in Ruby.
22 #
23 # == Features
24 #
25 # * Use RSpec to independently specify Rails Models, Views, Controllers and Helpers
26 # * Integrated fixture loading
27 # * Special generators for Resources, Models, Views and Controllers that generate Specs instead of Tests.
28 #
29 # == Vision
30 #
31 # For people for whom TDD is a brand new concept, the testing support built into Ruby on Rails
32 # is a huge leap forward. The fact that it is built right in is fantastic, and Ruby on Rails
33 # apps are generally much easier to maintain than they might have been without such support.
34 #
35 # 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.
36 #
37 # == More Information
38 #
39 # See Spec::Rails::Runner for information about the different kinds of contexts
40 # you can use to spec the different Rails components
41 #
42 # See Spec::Rails::Expectations for information about Rails-specific expectations
43 # you can set on responses and models, etc.
44 #
45 # == License
46 #
47 # RSpec on Rails is licensed under the same license as RSpec itself,
48 # the MIT-LICENSE.
49 module Rails
50 end
51end