Santiago Pastorino and José Ignacio Costa
e445a79562
Bump mysql2 up
2011-06-16 01:05:45 -03:00
José Valim
36253916b0
Deprecate memoizable.
2011-06-15 17:08:08 -03:00
José Valim
6c3e80af68
load_generators from engine should also handle self automatically.
2011-06-15 15:53:58 -03:00
José Valim
078bdc6ded
Merge pull request #1711 from daeltar/master
...
Use assert_equal instead of assert in uploaded file test.
2011-06-15 03:19:21 -07:00
Lukáš Konarovský
c0d82ba030
Use assert_equal instead of assert in uploaded file test.
2011-06-15 03:09:27 -07:00
José Valim
6ab3da6208
Merge pull request #1707 from dmathieu/memoize
...
Allow last argument to be a boolean in memoized methods
2011-06-15 02:52:12 -07:00
Damien Mathieu
0438e92ae7
simplify to only one condition
...
Signed-off-by: Andrew White <andyw@pixeltrix.co.uk >
2011-06-15 09:51:36 +01:00
Damien Mathieu
9791e3e252
allow boolean last argument in memoized methods - Closes #1704
...
If in the memoized method, the last argument is a boolean, it's considered as the reload method.
Don't consider it like that if that's a normal method argument.
2011-06-15 09:46:53 +02:00
Brian Underwood
10cfd14649
Failing test to show problem when last argument of a memoized method is true
...
Signed-off-by: Damien Mathieu <42@dmathieu.com >
2011-06-15 09:44:21 +02:00
Andrew White
0ac0d7a0f0
Make MissingTranslation exception handler respect :rescue_format
2011-06-15 01:21:04 +01:00
Joshua Peek
56b301fa7a
Fix appending sprockets paths
2011-06-14 14:39:34 -05:00
Jon Leighton
411435a71c
Merge pull request #1698 from bagwanpankaj/master
...
Removed warnings from while running tests in Ruby 1.9.2
2011-06-14 09:56:51 -07:00
bagwanpankaj
c424fb29ab
Removed warning while running test with ruby 1.9.2
2011-06-14 21:56:27 +05:30
José Valim
deff5977d4
Merge pull request #1689 from dmathieu/utf8-filename
...
Encode the uploaded file's name in utf8 - Closes #869
2011-06-14 08:13:15 -07:00
Damien Mathieu
383fd143bf
all requests are utf-8. Don't use the external encoding.
2011-06-14 17:01:33 +02:00
Damien Mathieu
383d56b5ee
encode the uploaded file's name in the default external encoding - Closes #869
2011-06-14 14:34:30 +02:00
Jon Leighton
954359b9c2
Add Gemfile dependency for require_relative on mri18. This is a dependency of linecache which is a dependency of ruby-debug. However, the latest release of linecache (0.45) omits the dependency from its gemspec, causing the build to fail. I have emailed the maintainer so we should remove this when it's fixed upstream.
2011-06-13 22:18:31 +01:00
Andrew White
190677d0f2
Remove obsolete compatibility module
2011-06-13 18:25:26 +01:00
David Heinemeier Hansson
a6467802ff
Rename Time#whole_* to Time#all_* [thanks Pratik!]
2011-06-13 19:09:11 +02:00
David Heinemeier Hansson
d6cc0e56bd
Added Time#whole_day/week/quarter/year as a way of generating ranges (example: Event.where(created_at: Time.now.whole_week)) [DHH]
2011-06-13 18:56:06 +02:00
David Heinemeier Hansson
b12c2e4ebb
Added instance_accessor: false as an option to Class#cattr_accessor and friends [DHH]
2011-06-13 18:56:06 +02:00
Santiago Pastorino
276618c652
Merge pull request #1676 from neerajdotname/make_test_name_meaningful
...
Remove "is_assed" with something more meaningful
2011-06-13 05:49:00 -07:00
Santiago Pastorino
5599e3fa0c
Merge pull request #1654 from ganeshkumar/test_cases
...
removed duplicate code in tests
2011-06-13 05:45:47 -07:00
Andrew White
5d655aabcb
Pass mass-assignment options to nested models - closes #1673 .
2011-06-13 13:02:51 +01:00
Andrew White
987afa583e
Rename tests to reflect associations
2011-06-13 10:01:38 +01:00
Neeraj Singh
54c651a6bb
Remove "is_assed" with something more meaningful
2011-06-13 04:34:09 -04:00
José Valim
c41c4425ee
Merge pull request #1672 from ryanb/namespace_engine_assets
...
Namespace engine assets
2011-06-13 00:45:32 -07:00
Ryan Bates
4dc3bb9cbd
namespace engine assets
2011-06-12 18:29:14 -07:00
Jon Leighton
86bbba1ffb
Add support for using an ARCONFIG environment variable to specify the location of the config.yml file for running the tests
2011-06-12 19:08:16 +01:00
Jon Leighton
15e289147e
Oops, this should have been in the last commit ⚡
2011-06-12 19:05:29 +01:00
Jon Leighton
c52520166b
Make assert_no_queries literally enforce that there are no queries. As in, not a single line of SQL should be sent to the database, not even stuff that is ignored by assert_queries. The argument being that if you write assert_no_queries, you really do not want there to be any queries.
2011-06-12 18:50:24 +01:00
Jon Leighton
232c66a1ba
If we're going to use a global variable, let's at least namespace it
2011-06-12 18:38:39 +01:00
Jon Leighton
b09bbdb8bf
Replace inline lambdas with named methods
2011-06-12 18:19:22 +01:00
Jon Leighton
14e6bbb149
Refactor tests to be less brittle
2011-06-12 18:19:21 +01:00
Jon Leighton
de01a64102
Move BEGIN and COMMIT into IGNORED_SQL rather than having them as a special case in assert_queries
2011-06-12 18:19:21 +01:00
benedikt
fa8dfad765
Don't wrap operations on collection associations in transactions when they are not needed, so the connection adapter does not send empty BEGIN COMMIT transactions blocks to the database.
2011-06-12 18:19:21 +01:00
Andrew White
1fa059cd01
Define ActiveSupport#to_param as to_str - closes #1663
2011-06-12 15:32:46 +01:00
Xavier Noria
cd99784d99
Merge branch 'master' of github.com:rails/rails
2011-06-12 15:04:15 +02:00
Xavier Noria
caadef9dd4
backslash insertion for RDoc main page ignores code blocks, also adds comments to explain what's this hack about
2011-06-12 15:03:28 +02:00
José Valim
04407a7b8a
Make i18n tests more robust.
2011-06-12 12:45:09 +02:00
Xavier Noria
de757af8b0
revises the pattern that excludes generator templates in API generation
...
With the previous pattern RDoc processed
railties/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb
and that resulted in a spurious "<" class.
2011-06-12 12:09:08 +02:00
Piotr Sarnacki
e591d14b9c
Update changelog with #1552 feature: add hidden field before select[multiple=true]
2011-06-11 18:24:05 +02:00
ganesh
7c3094626d
removed duplicate code
2011-06-11 21:49:12 +05:30
José Valim
82568bedae
Update CHANGELOG.
2011-06-11 18:03:13 +02:00
José Valim
410a42860b
Get rid of the alternate namespace lookup.
2011-06-11 18:01:26 +02:00
Piotr Sarnacki
f5e1548c1b
Merge pull request #1552 from bogdan/select
...
Fixing select[multiple] html specification problem.
2011-06-11 08:21:22 -07:00
José Valim
e294009b07
No need for a configuration option here.
2011-06-11 17:10:16 +02:00
José Valim
28f2b981fc
Merge pull request #549 from dlee/utf8_enforcer
...
Utf8 enforcer param customization
2011-06-11 08:04:06 -07:00
José Valim
1829dd9175
Merge pull request #1647 from neerajdotname/make_tests_stronger
...
Make tests stronger, cleaner and slimmer
2011-06-11 08:01:52 -07:00
David Lee
9b305983e3
Remove utf8_enforcer_param config option
2011-06-11 01:58:26 -07:00