David Heinemeier Hansson
ff9ca2ca1e
Random hits from the style nazi
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 23:12:57 +00:00
David Heinemeier Hansson
46f217b298
Removed deprecated form of calling xml_http_request/xhr without the first argument being the http verb [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 23:00:17 +00:00
Michael Koziarski
80ff0b9f1c
Optimise named route generation when using positional arguments. Closes #9450 [Koz]
...
This change delivers significant performance benefits for the most
common usage scenarios for modern rails applications by avoiding the
costly trip through url_for. Initial benchmarks indicate this is
between 6 and 20 times as fast.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 00:18:55 +00:00
Jeremy Kemper
ed09b621bd
Documentation tweaks and fixes. Closes #9454 [sur, kampers]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-31 19:07:42 +00:00
Jeremy Kemper
ba7dc5d421
Revert [6811]. Should be fixed instead of selectively reintroducing the deprecated environment variable.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-23 06:11:48 +00:00
Tobias Lütke
d418b7d391
Set RAW_POST_DATA in integration tests as expected
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-22 22:26:00 +00:00
Jeremy Kemper
d1c957d067
Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST. Closes #7124 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-21 09:15:16 +00:00
Jeremy Kemper
d2ed32d592
Parse url-encoded and multipart requests ourselves instead of delegating to CGI.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-18 06:24:50 +00:00
Jeremy Kemper
a56081d99a
Pass stdinput to super.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-18 01:28:43 +00:00
Nicholas Seckar
a5fe13e871
Add ActionController::Routing::Helpers, a module to contain common URL helpers such as polymorphic_url.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-12 04:18:46 +00:00
Jeremy Kemper
236fe10fe9
Integration tests: introduce methods for other HTTP methods. Closes #6353 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-22 09:28:10 +00:00
Jeremy Kemper
0eacdcf9a3
Use a consistent load path to avoid double requires. Fix some scattered Ruby warnings.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-28 07:16:55 +00:00
Jamis Buck
b75f28edb4
Make sure html_document is reset between integration test requests ( closes #6834 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-01 03:03:13 +00:00
Michael Koziarski
f6e85e4ec6
Merge [5641] to Trunk
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-27 23:56:27 +00:00
Jeremy Kemper
4887e53bf9
Use Location rather than location header.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-26 05:35:53 +00:00
David Heinemeier Hansson
951b4d2799
Still need the regular assertions
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-05 23:04:14 +00:00
David Heinemeier Hansson
9598176390
Better bundling of new assertions and make integration tests work again
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-05 21:28:22 +00:00
Jeremy Kemper
71dbef6d27
Integration tests: thoroughly test ActionController::Integration::Session. Closes #6022 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-03 23:34:57 +00:00
David Heinemeier Hansson
6d88a992b5
Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-03 23:22:24 +00:00
Jeremy Kemper
9c99be88b2
Integration tests: headers beginning with X aren't excluded from the HTTP_ prefix, so X-Requested-With becomes HTTP_X_REQUESTED_WITH as expected.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-01 02:25:29 +00:00
Jeremy Kemper
9f8b8f5ca8
Typo in integration app session. Closes #5864 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-26 06:54:26 +00:00
Jeremy Kemper
ffaecb792e
r4886@ks: jeremy | 2006-07-31 00:01:55 -0700
...
comma
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 07:02:08 +00:00
David Heinemeier Hansson
df7efd7e21
Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 06:18:20 +00:00
Nicholas Seckar
9d17f882ee
Update integration.rb to require test_process explicitly instead of via Dependencies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-27 14:30:23 +00:00
Jeremy Kemper
eede40bcf0
Reset @html_document between requests so assert_tag works. Closes #4810 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 04:58:55 +00:00
Jeremy Kemper
c396c5ab31
Integration tests behave well with render_component. Closes #4632 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 00:18:42 +00:00
Jamis Buck
ef5317f74f
Tweaks to integration tests and url rewriter for further compatibility with new routes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-01 16:20:26 +00:00
Rick Olson
59bd6586c8
Add Integration Session methods for PUT and DELETE requests [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 20:17:06 +00:00
Marcel Molina
9f92dd3984
Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:20:22 +00:00
Marcel Molina
f3ce39749c
Documentation fix: integration test scripts don't require integration_test. Closes #4914 . [Frederick Ros <sl33p3r@free.fr>]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-27 22:51:39 +00:00
Marcel Molina
8ee378f3c4
Enhance documentation for setting headers in integration tests. Skip auto HTTP prepending when its already there. Closes #4079 . [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-26 22:13:31 +00:00
Jamis Buck
3bf3bc228c
Delegate xml_http_request in integration tests to the session instance.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-04 20:16:29 +00:00
David Heinemeier Hansson
dfd953ea96
Fixed docs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 03:19:27 +00:00
David Heinemeier Hansson
9326222941
Use example.com as standard ( closes #4413 ) [anna]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 19:43:40 +00:00
Jamis Buck
9d7de52c2d
Add Integration::Session.accept for setting the HTTP Accept header to use (defaults to FF 1.5 value)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 15:09:27 +00:00
Jamis Buck
36ea93e4b9
rename 'integration_test.rb' -> 'integration.rb'
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 14:27:36 +00:00