aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing
Commit message (Collapse)AuthorAgeFilesLines
* Integration tests support the OPTIONS http methodJeremy Kemper2012-02-191-1/+7
|
* Stop referring to Atom as "ATOM"Tom Stuart2012-02-051-1/+1
| | | | | | $ curl -s http://www.ietf.org/rfc/rfc4287 | grep -io ATOM | sort | uniq -c 582 atom 175 Atom
* Remove assert_select_feed from assert_select_encoded documentationTom Stuart2012-02-051-2/+2
| | | | | | This documentation came from the assert_select plugin, but the assert_select_feed method was omitted when the plugin was merged into Rails in 3142502964f94d6144312ae2c368b4c4589fa25a.
* Replaced all 'for' loops with Enumerable#eachNathan Broadbent2012-01-301-2/+2
|
* Use MiniTest::Assertions instead of Test::Unit::AssertionsRafael Mendonça França2012-01-061-2/+1
|
* use assert_equal and assert_operatorAaron Patterson2012-01-061-5/+8
|
* use sprintf rather than build_messageAaron Patterson2012-01-061-4/+6
|
* Just use assert_equalAaron Patterson2012-01-061-3/+2
|
* refactor assert_responseAaron Patterson2012-01-061-7/+10
|
* test response assertionsAaron Patterson2012-01-061-8/+0
|
* no need for assert_blockAaron Patterson2012-01-061-3/+3
|
* stop using build_message for creating a stringAaron Patterson2012-01-061-1/+1
|
* just use assert and refute rather than building messagesAaron Patterson2012-01-061-6/+2
|
* remove Rails application fallback from AD::IntegrationTestSergey Nartimov2011-12-231-3/+6
| | | | set AD::IntegrationTest.app in railtie initializer
* TestCase should respect the view_assigns API instead of pulling variables on ↵José Valim2011-10-021-6/+1
| | | | its own.
* Revert "Make process reuse the env var passed as argument"Santiago Pastorino2011-09-241-4/+4
| | | | This reverts commit 0e4748cd415660eb91e63d50aa15cdd027c612dd.
* fix assert_select_email to work on non-multipart emails as well as ↵Andrew Kaspick2011-08-111-2/+2
| | | | converting the Mail::Body to a string to prevent errors.
* Remove blank lineSantiago Pastorino2011-07-261-1/+0
|
* refactored 'assert_redirected_to': local call to validate_request! will be ↵thoefer2011-07-261-5/+4
| | | | called in assert_response already. changed names of local variables in order to recognize the semantics a bit easier.
* TODO fix explicitly loading exceptations, autoload removedVishnu Atrai2011-07-111-0/+1
|
* Get the fixture_path from self.class instead of ActiveSupport::TestCase.David Chelimsky2011-06-251-1/+1
| | | | | | This allows test classes that are not subclasses of ActiveSupport::TestCase (like those in rspec-rails) to interact with with this variable without having to reference ActiveSupport::TestCase.
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-3/+0
|
* Add backward compatibility for testing cookiesAndrew White2011-06-051-1/+7
| | | | | | | | | | | | | | | | | | | This commit restores the ability to assign cookies for testing via @request.env['HTTP_COOKIE'] and @request.cookies, e.g: @request.env['HTTP_COOKIE'] = 'user_name=david' get :index assert_equal 'david', cookies[:user_name] and @request.cookies[:user_name] = 'david' get :index assert_equal 'david', cookies[:user_name] Assigning via cookies[] is the preferred method and will take precedence over the other two methods. This is so that cookies set in controller actions have precedence and are carried over between calls to get, post, etc.
* Add missing require for cookies middlewareAndrew White2011-06-041-0/+1
|
* Refactor ActionController::TestCase cookiesAndrew White2011-06-042-26/+1
| | | | | | | | | | | | | | | | | | Assigning cookies for test cases should now use cookies[], e.g: cookies[:email] = 'user@example.com' get :index assert_equal 'user@example.com', cookies[:email] To clear the cookies, use clear, e.g: cookies.clear get :index assert_nil cookies[:email] We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created.
* Corrected some typos and American vs. Queen's English issuesLee Reilly2011-05-291-4/+4
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-252-10/+10
|\ | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-232-10/+10
| |
* | Restructure TemplateAssertions-related code to eliminate circular requires.wycats2011-05-222-14/+6
|/ | | Also, no need to include dependencies in AS::Concerns inside included blocks.
* Merge pull request #247 from goncalossilva/performance_testJeremy Kemper2011-05-171-13/+6
|\ | | | | Performance tests improved
| * Merge branch 'master' of https://github.com/rails/rails into performance_testGonçalo Silva2011-05-081-1/+1
| |\ | | | | | | | | | | | | Conflicts: activesupport/lib/active_support/testing/performance.rb
| * \ Merge branch 'master' of https://github.com/rails/rails into performance_testGonçalo Silva2011-04-173-212/+24
| |\ \
| * \ \ Merge branch 'master' of https://github.com/rails/rails into performance_testGonçalo Silva2011-04-031-3/+3
| |\ \ \
| * | | | remove deprecated documentationGonçalo Silva2011-03-281-3/+0
| | | | |
| * | | | move "check for ruby-prof" from AD/testing/performance_test to ↵Gonçalo Silva2011-03-241-13/+9
| | | | | | | | | | | | | | | | | | | | AS/testing/performance, where it is actually required
* | | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-141-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/date_helper.rb railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
| * | | | | Follow code conventions on docsSebastian Martinez2011-05-101-1/+1
| | |_|_|/ | |/| | |
* / | | | typoJason Dew2011-05-131-1/+1
|/ / / /
* | | | Flunk makes a lot more sense, doesnt it (hat tip @tenderlove)David Heinemeier Hansson2011-05-021-1/+1
| | | |
* | | | We cant use assert_block because its buggy in MiniTest and wont actually ↵David Heinemeier Hansson2011-04-221-1/+1
| |_|/ |/| | | | | | | | show you the failure message you provide -- instead you just always get a "Expected block to return true"
* | | Remove `#among?` from Active SupportPrem Sichanugrist2011-04-132-2/+2
| | | | | | | | | | | | | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* | | renames response_from_page_or_rjs -> response_from_page, and extracts the ↵Xavier Noria2011-04-131-58/+5
| | | | | | | | | | | | RJS in it
* | | removes assert_select_rjsXavier Noria2011-04-131-139/+1
| | |
* | | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-123-3/+3
| | | | | | | | | | | | suggestion!
* | | Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-113-3/+7
| | | | | | | | | | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* | | Make process reuse the env var passed as argumentSantiago Pastorino2011-04-061-5/+4
| | |
* | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-031-8/+8
|\ \ \ | |_|/ |/| |
| * | Fix grammar, formatting, and cross referencesJohn Firebaugh2011-03-281-8/+8
| |/
* / use assert_equal so we get normal error messages along with our custom ↵Aaron Patterson2011-03-301-3/+3
|/ | | | failure message
* Improve testing of cookies in functional tests:Andrew White2011-03-062-2/+7
| | | | | | | | | - cookies can be set using string or symbol keys - cookies are preserved across calls to get, post, etc. - cookie names and values are escaped - cookies can be cleared using @request.cookies.clear [#6272 state:resolved]