1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch
Timo Schilling e1fb3483d6 allow reseting of request variants
The current implementation of `variants=` don't allow a resetting to nil, wich is the default value.

This results in the following code smell:
```ruby
case request.user_agent
when /iPhone/
  request.variants = :phone
when /iPad/
  request.variants = :ipad
end
```

With the ability to reset variants to nil, it could be:
```ruby
request.variants = case request.user_agent
when /iPhone/
  :phone
when /iPad/
  :ipad
end
```
2014-12-16 11:37:04 +01:00
..
middleware_stack make sure string keys are always looked up from the class cache 2011-03-02 10:11:28 -08:00
request Don't convert empty arrays to nils when deep munging params 2014-12-15 14:51:07 +00:00
routing allow URL helpers to work with optional scopes 2014-12-13 15:52:41 -05:00
session Expectations first 2014-08-18 15:40:53 +09:00
callbacks_test.rb ActionDispatch: add missing test for callbacks 2012-02-16 15:58:58 +02:00
cookies_test.rb Merge pull request #17792 from rockrep/master 2014-12-04 15:21:47 -02:00
debug_exceptions_test.rb Refactor debug view 2014-12-02 09:45:20 -05:00
exception_wrapper_test.rb Rename #source_extract to #source_extracts in ExceptionWrapper 2014-11-16 18:39:45 +02:00
header_test.rb HTTP::Headers#key? correctly converts 2014-05-07 12:01:34 -05:00
live_response_test.rb use the body proxy to freeze headers 2014-03-12 17:40:08 -07:00
mapper_test.rb fewer operations on the options hash 2014-08-13 18:34:21 -07:00
middleware_stack_test.rb Add the #unshift method to the middleware stack 2012-05-18 16:41:52 +10:00
mime_type_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
mount_test.rb Rails-ish apps should descend from Rails::Railtie 2014-07-16 15:41:47 -07:00
prefix_generation_test.rb call the routes method on engines 2014-08-05 16:50:50 -07:00
rack_cache_test.rb Dump and load rack-cache stuff. 2011-05-17 17:33:17 -04:00
reloader_test.rb Reset callbacks after test. 2014-06-05 22:30:53 +08:00
request_id_test.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
request_test.rb allow reseting of request variants 2014-12-16 11:37:04 +01:00
response_test.rb Add support for Rack::ContentLength middelware 2014-09-06 12:33:29 -04:00
routing_assertions_test.rb Add test to assert_recognizes with custom message 2014-09-05 16:47:00 -03:00
routing_test.rb Fix handling of positional url helper arguments when format is false 2014-12-13 15:42:15 +00:00
show_exceptions_test.rb Stash original path in ShowExceptions middleware 2014-07-14 11:55:44 +01:00
ssl_test.rb Avoid URI parsing 2014-04-09 14:19:53 -03:00
static_test.rb FileHandler should not be called for files outside the root 2014-10-10 16:00:03 -07:00
template_assertions_test.rb Fix for assigns(:..) resetting template assertions 2014-11-17 09:49:07 +08:00
test_request_test.rb Allow overriding of all headers from passed environment hash 2013-07-25 07:54:57 +01:00
test_response_test.rb Add ActionDispatch::TestResponse tests. 2010-09-25 10:52:57 +02:00
uploaded_file_test.rb always transcode the file to utf-8 2014-07-16 11:35:27 -07:00
url_generation_test.rb always test against a routed rack app so there are always url_helpers 2014-07-07 10:22:13 -07:00