Sha256: 4e021f19d45493fb200a14bf50e518b226052920dd2e2d908c5f17c0682bb053

Contents?: true

Size: 1.84 KB

Versions: 42

Compression:

Stored size: 1.84 KB

Contents

dir = File.dirname(__FILE__)

require 'spec/rails/example/assigns_hash_proxy'

require "spec/rails/example/render_observer"
require "spec/rails/example/rails_example_group"
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/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

42 entries across 42 versions & 7 rubygems

Version Path
dchelimsky-rspec-rails-1.1.10 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.1 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.2 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.3 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.4 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.5 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.6 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11.7 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.11 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.12 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.6 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.7 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.8 lib/spec/rails/example.rb
dchelimsky-rspec-rails-1.1.9 lib/spec/rails/example.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example.rb