Aaron Patterson
32f876786a
getting the flash hash under test
2011-04-06 18:01:03 -07:00
Aaron Patterson
76c2ea7882
favor composition over inheritance, have FlashHash delegate to a Hash
2011-04-06 17:26:55 -07:00
Aaron Patterson
0ca69ca65f
CookieJar should prefer composition over inheritance
2011-04-06 16:27:05 -07:00
Santiago Pastorino
9f765f4e09
Delete useless arguments
2011-04-06 19:18:41 -03:00
Santiago Pastorino
ed04243629
Delete useless env variable
2011-04-06 19:15:33 -03:00
Santiago Pastorino
0d45567362
Add tests to verify that signed and permanent cookies raises if someone tries
...
to modify the cookies when it was already streamed back to the client
or converted to HTTP headers
2011-04-06 19:12:35 -03:00
Santiago Pastorino
0e4748cd41
Make process reuse the env var passed as argument
2011-04-06 16:37:55 -03:00
Santiago Pastorino
0c5aded092
raise if someone tries to modify the cookies when it was already streamed back to the client or converted to HTTP headers
2011-04-06 15:47:58 -03:00
Santiago Pastorino
90ecad0bc9
Add ClosedError message to the initializer
2011-04-06 15:45:23 -03:00
Aaron Patterson
2e757bc298
do not return html safe strings from auto_link
2011-04-05 16:22:53 -07:00
Josh Kalderimis
e9020b4b5d
added find_zone and find_zone! to AS timezones and changed the AS Railtie to use find_zone! as well as adding Railtie tests
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-05 17:12:09 -03:00
Marc-Andre Lafortune
1c4db4d7c3
Raise on invalid timezone
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-05 17:11:13 -03:00
Emilio Tagua
18dde7bf4f
Disable IdentityMap in log tests, it's not important and when running tests rake task it logs more messages in the tested buffer.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-05 22:08:00 +02:00
Josh Kalderimis
cb9e501a28
AM register_interceptor and register_observer only constantize if the argument is a String
2011-04-06 02:45:37 +08:00
John Firebaugh
d907f3cb5c
Rename test directory to match code directory
...
Hopefully "serializeration" is not an in joke that I missed.
2011-04-06 01:50:35 +08:00
Santiago Pastorino
d7a5638dfb
raise if someone tries to modify the flash when it was already streamed back to the client or converted to HTTP headers
2011-04-05 10:41:34 -03:00
Durran Jordan
a9b4b5da7c
Destroying records via nested attributes works independent of reject_if:
...
- When a :_destroy truthiness is provided in the attributes hash, the
record should get destroyed regardless of the result of the proc or
method supplied to :reject_if. (If :allow_destroy is true)
[#6006 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-05 10:38:54 -03:00
Josh Kalderimis
284ca810c1
remove AM delegating register_observer and register_interceptor to Mail and instead implement smarter versions allowing for string class names, also added proper Railtie support with tests.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-04 10:49:09 +02:00
Emilio Tagua
454ec93ff7
Add log message when loading records from Identity Map.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-04 10:48:17 +02:00
Emilio Tagua
b35617235d
Use IM when trying to load records using ID.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-04 10:48:12 +02:00
Santiago Pastorino
16e5d158c2
Add railties to the LOAD_PATH if running from a Rails checkout
2011-04-03 19:18:57 -03:00
Xavier Noria
3e24e9ebc2
Merge branch 'master' of git://github.com/lifo/docrails
2011-04-03 22:22:03 +02:00
orta
4c323bc25a
added .'s to headings in the initialization textile page
2011-04-03 15:19:32 +02:00
Akira Matsuda
9bf5cddd28
s/ERb/ERB/g (part II)
2011-04-03 16:59:37 +09:00
Akira Matsuda
bd3cdeea35
s/ERb/ERB/g
...
The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib.
http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
2011-04-03 12:47:51 +09:00
Santiago Pastorino
a000fc58b8
Bump up erubis to 2.7.0
2011-04-02 23:56:52 -03:00
Santiago Pastorino
cc58fe79ac
Implicit actions named not_implemented can be rendered
2011-04-02 23:47:50 -03:00
Santiago Pastorino
99da42c299
Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0
2011-04-02 00:35:33 -03:00
Santiago Pastorino
9de8dea2e8
default_executable is deprecated since rubygems 1.7.0
2011-04-01 23:58:37 -03:00
Jon Cooper
c17b8e4047
Trivial fix to HTTP Digest auth MD5 example
2011-03-31 16:22:52 -07:00
David Heinemeier Hansson
0eb6e5e270
Moved Turn activation/dependency to railties
2011-03-31 16:20:59 -07:00
burningTyger
63e4e218c5
fix typo
2011-04-01 00:12:58 +02:00
David Heinemeier Hansson
caf0a72c85
Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH]
2011-03-31 14:33:24 -07:00
David Heinemeier Hansson
6eff04499e
Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH]
2011-03-31 12:25:04 -07:00
David Heinemeier Hansson
edf7c9a6a3
require turn only for minitest
2011-03-31 12:17:28 -07:00
David Heinemeier Hansson
b27057731c
Use Turn to format all Rails tests and enable the natural language case names
2011-03-31 12:11:03 -07:00
José Valim
7a9dafd96c
Improve docs.
2011-03-31 19:00:05 +02:00
Josh Kalderimis
b45302d767
pass respond_with options to controller render when using a template for api navigation
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:36 +02:00
Josh Kalderimis
48404a751d
only try to display an api template in responders if the request is a get or there are no errors
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:27 +02:00
Josh Kalderimis
9766997f4c
when using respond_with with an invalid resource and custom options, the default response status and error messages should be returned
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:21 +02:00
Amaia Castro
a64abdda25
Explain in the method doc that you need to call respond_to at the class level in order to use respond_with.
2011-03-31 13:19:19 +02:00
Josiah Ivey
f44d85a030
Grammar tweaks to the guides guidelines
2011-03-31 00:16:45 -05:00
David Heinemeier Hansson
2867093365
Delegate pending to skip if Minitest is available
2011-03-30 21:16:29 -07:00
Aaron Patterson
58c3ec1b7b
use assert_equal so we get normal error messages along with our custom failure message
2011-03-30 15:29:52 -07:00
Ryan Bigg
cf07da0929
Symbol to proc is preferred over longer form of map
2011-03-31 06:59:48 +11:00
Ryan Bigg
04d5decfd3
Cleanup of named_scope documentation
2011-03-31 06:48:05 +11:00
Ryan Bigg
7a34ab7d60
Fix typo in named_scope documentation
2011-03-31 06:48:05 +11:00
Eadz
6a1715111e
add space to conform with style
2011-03-31 06:48:05 +11:00
Eadz
45d5d6b268
Documented undocumented feature: Class methods on your model are automatically available on scopes
2011-03-31 06:48:05 +11:00
Santiago Pastorino
4f90b28e06
Bring back AMo#i18n_key method
2011-03-30 16:29:43 -03:00