aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/action_pack_assertions_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Backport #5808Mack Earnhardt2013-03-241-0/+37
| | | | | | df36c5f - Fix assert_template assertion with :layout option 4bd05a7 - Fix assert_template :layout => nil assertion 0d19a08 - Improve assert_template layout checking
* Revert "Merge pull request #7659 from HugoLnx/template_error_no_matches_rebased"Rafael Mendonça França2012-10-311-22/+0
| | | | | | | | | | | | | This reverts commit 7d17cd2cbfc086f5aa9dd636e1207eb130150428. Conflicts: actionpack/CHANGELOG.md Reason: This added a regression since people were relying on this buggy behavior. This will introduce back #3849 but we will be backward compatible in stable release. Fixes #8068.
* Merge pull request #7659 from HugoLnx/template_error_no_matches_rebasedRafael Mendonça França2012-09-301-0/+22
| | | | | | | REBASED: fixing assert_template bug when template matches expected, but not ends with Conflicts: actionpack/CHANGELOG.md actionpack/lib/action_controller/test_case.rb
* warning removed "warning: instance variable @variable_for_layout not ↵Arun Agrawal2011-12-171-0/+1
| | | | initialized"
* Fix bug in assert_template when using only `:layout` optionPrem Sichanugrist2011-12-061-0/+16
| | | | | | | | | | Currently if you're do this: assert_template :layout => "foo" Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3f]. We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
* remove unused user_controller from testNeeraj Singh2011-06-081-3/+0
|
* fix warning during test executionNeeraj Singh2010-11-171-1/+1
| | | | | | [#5997 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* make sure we are only doing sanity checking against regular expressionsAaron Patterson2010-11-151-0/+8
|
* Reset assert_template instance variables between requests [#5832 state:resolved]Andrew White2010-10-181-0/+8
|
* _ is not a valid scheme name character, \w includes it and also is redundant ↵Emilio Tagua2010-09-291-0/+7
| | | | | | with \d. 'The scheme name consists of a letter followed by any combination of letters, digits, and the plus ("+"), period ("."), or hyphen ("-") characters; and is terminated by a colon (":").'
* Use instance_variable_defined? instead instance_variable_get in tests.Emilio Tagua2010-09-281-2/+2
|
* Use parentheses when using assert_match followed by a regexp to avoid warnings.Emilio Tagua2010-09-271-1/+1
|
* Cleanup Action Dispatch assertions testsCarlos Antonio da Silva2010-09-061-108/+37
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Cleanup deprecations in Action DispatchCarlos Antonio da Silva2010-09-061-21/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-11/+8
|
* Remove assert_valid. It was already deprecated on Rails 2.3.José Valim2010-07-191-15/+0
|
* move assert_template tests to their own test case [#4501 state:resolved]David Chelimsky2010-05-031-41/+46
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Eliminate false positives when passing symbols to assert_templateDavid Chelimsky2010-05-031-4/+25
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-171-3/+5
| | | | ActionController::Base#template since it is no longer needed.
* Remove unneeded AV::Base and AV::Template monkey-patchesCarlhuda2010-03-171-3/+2
|
* No longer add missing leading / on path args to assert_redirected_to. ↵Jeremy Kemper2010-03-021-2/+4
| | | | Deprecated in 2.3.6.
* Remove implicit controller namespacing from new dslJoshua Peek2010-02-281-3/+6
|
* WIP: Remove the global routerCarlhuda2010-02-251-3/+6
|
* Use new routing dsl in testsJoshua Peek2009-12-081-11/+11
|
* Fix isolated running of ActionPackAssertionTestJoshua Peek2009-09-061-0/+1
|
* Track all AC base subclasses as possible controllers for internal testingJoshua Peek2009-08-251-8/+0
|
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-161-6/+2
| | | | ActionController::Routing::Routes directly
* Fix pending test about content-typeYehuda Katz + Carl Lerche2009-06-171-5/+19
|
* Make assertion tests pass with the new basePratik Naik2009-05-221-3/+3
|
* Add tests for assert_template :templateMike Breen2009-05-171-0/+23
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Extract ActionController rescue templates into Rescue and ShowExceptions ↵Joshua Peek2009-05-021-1/+1
| | | | | middleware. This commit breaks all exception catching plugins like ExceptionNotifier. These plugins should be rewritten as middleware instead overriding Controller#rescue_action_in_public.
* Deprecate assert_redirect_to's partial hash matchingJoshua Peek2009-05-021-3/+5
|
* Start moving TestRequest and TestResponse into ActionDispatchJoshua Peek2009-04-301-8/+14
|
* Deprecate template, session, assigns, and layout accessors on response ↵Joshua Peek2009-04-281-6/+6
| | | | object. Instead access them through the controller instance. This mainly affects functional test assertions.
* Deprecate response.redirect_url_match?, use assert_match instead.Joshua Peek2009-04-261-4/+6
|
* Temporarily modifies setup to call super directly. This can support more ↵Yehuda Katz and Carl Lerche2009-04-081-0/+2
| | | | T::U runners.
* Rename AbstractResponse to Response and inheirt from Rack::ResponseJoshua Peek2008-12-191-3/+3
|
* Add :partial option to assert_template [#1550 state:resolved]mark2008-12-111-3/+3
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Deprecate assert_validJoshua Peek2008-11-251-2/+2
|
* Add TestResponse#client_error? to check for 4xx status codes [#851 ↵Lance Ivy2008-11-221-0/+6
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Move controller assertions from base TestCase to AC:: and AV::TestCaseJeremy Kemper2008-11-071-15/+11
|
* Made ActionView::Base#first_render a little more private. And added ↵Joshua Peek2008-07-131-3/+3
| | | | _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved]
* Set global ActionController::Base.view_paths for test casesJoshua Peek2008-07-121-8/+0
|
* Simplify the implementation of assert_redirected_to to normalise the urls ↵Michael Koziarski2008-07-041-6/+4
| | | | | | before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion. Also allows for assert_redirected_to @some_record
* Remove old broken follow_redirect from functional tests. Still works in ↵Michael Koziarski2008-07-041-16/+0
| | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
* Set precompiled fixture load path constant to speed up testsJoshua Peek2008-06-251-3/+2
|
* Fix assert_redirected_to for nested controllers and named routesGabe da Silveira2008-06-041-3/+20
| | | | | | [#308 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Test for assert_response for failure response without an exception. [#141 ↵Chris Hapgood2008-05-191-0/+14
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_response failures include the exception message. Closes #10688.Jeremy Kemper2008-01-051-0/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de