mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 08:10:13 +01:00
* Ran rake rails:update * Added old actionwebservice framework * Updated RSpec and RSpec-Rails * Removed asset_packager plugin (not compatible, Scott no longer maintaining), and replaced with bundle_fu. See the bundle_fu README for more info. * Hacks to UJS and ARTS plugins, which are no longer supported. Probably should move off both UJS and RJS. * Hack to flashobject_helper plugin (upgrade to Rails 2.2-compatible version if/when it comes out.) * Hack to skinny-spec plugin, for Rails 2.2 compatibility. Should check for official release. * Hacks to resource_feeder plugin, for Rails 2.2 compatibility. Should check for official release (not likely) or move off it. * Addressed some deprecation warnings. More to come. * My mobile mime type hackery is no longer necessary with new Rails features. Yay! * Updated environment.rb.tmpl with changes TODO: * Restore view specs marked pending * Fix failing integration tests. * Try selenium tests. * Investigate OpenID support. * Address deprecation warnings. * Consider moving parts of environment.rb to initializers * Address annoying config.gem warning about highline gem
47 lines
1.8 KiB
Ruby
47 lines
1.8 KiB
Ruby
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
|