tracks/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
Luke Melia 35ae5fc431 Next step in upgrading Tracks to Rails 2.2. Some highlights:
* 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
2008-11-30 00:34:15 -05:00

31 lines
1.3 KiB
Ruby

dir = File.dirname(__FILE__)
require 'spec/rails/matchers/assert_select'
require 'spec/rails/matchers/change'
require 'spec/rails/matchers/have_text'
require 'spec/rails/matchers/include_text'
require 'spec/rails/matchers/redirect_to'
require 'spec/rails/matchers/render_template'
module Spec
module Rails
# Spec::Rails::Expectations::Matchers provides several expectation matchers
# intended to work with Rails components like models and responses. For example:
#
# response.should redirect_to("some/url") #redirect_to(url) is the matcher.
#
# In addition to those you see below, the arbitrary predicate feature of RSpec
# makes the following available as well:
#
# response.should be_success #passes if response.success?
# response.should be_redirect #passes if response.redirect?
#
# Note that many of these matchers are part of a wrapper of <tt>assert_select</tt>, so
# the documentation comes straight from that with some slight modifications.
# <tt>assert_select</tt> is a Test::Unit extension originally contributed to the
# Rails community as a plugin by Assaf Arkin and eventually shipped as part of Rails.
#
# For more info on <tt>assert_select</tt>, see the relevant Rails documentation.
module Matchers
end
end
end