Sha256: cbfb8ec9de9f8d8f7908487653b97830549a279eabc21493e1d7c06b2f5121bf

Contents?: true

Size: 1.94 KB

Versions: 19

Compression:

Stored size: 1.94 KB

Contents

dir = File.dirname(__FILE__)

require 'spec/rails/example/routing_helpers'
require 'spec/rails/example/assigns_hash_proxy'
require "spec/rails/example/render_observer"
require "spec/rails/example/model_example_group"
require "spec/rails/example/functional_example_group"
require "spec/rails/example/controller_example_group"
require "spec/rails/example/helper_example_group"
require "spec/rails/example/view_example_group"
require "spec/rails/example/routing_example_group"
require "spec/rails/example/integration_example_group"
require "spec/rails/example/cookies_proxy"

module Spec
  module Rails
    # Spec::Rails::Example extends Spec::Example (RSpec's core Example module) to provide
    # Rails-specific contexts for describing Rails Models, Views, Controllers and Helpers.
    #
    # == Model Examples
    #
    # These are the equivalent of unit tests in Rails' built in testing. Ironically (for the traditional TDD'er) these are the only specs that we feel should actually interact with the database.
    #
    # See Spec::Rails::Example::ModelExampleGroup
    #
    # == Controller Examples
    #
    # These align somewhat with functional tests in rails, except that they do not actually render views (though you can force rendering of views if you prefer). Instead of setting expectations about what goes on a page, you set expectations about what templates get rendered.
    #
    # See Spec::Rails::Example::ControllerExampleGroup
    #
    # == View Examples
    #
    # This is the other half of Rails functional testing. View specs allow you to set up assigns and render
    # a template. By assigning mock model data, you can specify view behaviour with no dependency on a database
    # or your real models.
    #
    # See Spec::Rails::Example::ViewExampleGroup
    #
    # == Helper Examples
    #
    # These let you specify directly methods that live in your helpers.
    #
    # See Spec::Rails::Example::HelperExampleGroup
    module Example
    end
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/lib/spec/rails/example.rb
richzhou-rspec-rails-1.3.4 lib/spec/rails/example.rb
rspec-rails-1.3.4 lib/spec/rails/example.rb
rspec-rails-1.3.3 lib/spec/rails/example.rb
rspec-rails-1.3.3.rc lib/spec/rails/example.rb
exception2db-0.0.1 test/rspec-rails/lib/spec/rails/example.rb
rspec-rails-w-factory_girl-1.3.2.1 lib/spec/rails/example.rb
rspec-rails-w-factory_girl-1.3.2 lib/spec/rails/example.rb
rspec-rails-1.3.2 lib/spec/rails/example.rb
rspec-rails-1.3.1 lib/spec/rails/example.rb
rspec-rails-1.3.0 lib/spec/rails/example.rb
hubbub-0.0.11 lib/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
hubbub-0.0.10 lib/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
hubbub-0.0.9 lib/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
hubbub-0.0.8 lib/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
hubbub-0.0.6 lib/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
rspec-rails-1.2.9 lib/spec/rails/example.rb
rspec-rails-1.2.7 lib/spec/rails/example.rb
rspec-rails-1.2.7.1 lib/spec/rails/example.rb