Aaron Patterson
|
f30a3106f3
|
transactional fixtures must be set to false for this test
|
2011-01-14 13:45:30 -08:00 |
|
Aaron Patterson
|
92499b3c7e
|
Arel::Table.engine will be deprecated, so stop using it
|
2011-01-14 13:11:24 -08:00 |
|
Aaron Patterson
|
1e9685f159
|
preheat the table cache in arel
|
2011-01-14 11:16:31 -08:00 |
|
Santiago Pastorino
|
3755ae04a1
|
Add missing require
|
2011-01-14 17:11:15 -02:00 |
|
Aaron Patterson
|
7bf7ab5c68
|
use rack-test from git
|
2011-01-14 10:14:10 -08:00 |
|
Santiago Pastorino
|
9a57a2279e
|
sorry, the CI cannot lie to us anymore (Part II)
|
2011-01-13 10:55:41 -02:00 |
|
Aaron Patterson
|
3165dca28c
|
include_in_memory? should check against @target list in case of new records. [#6257 state:resolved]
|
2011-01-12 18:07:53 -08:00 |
|
Aaron Patterson
|
f2beb56c8b
|
fixing whitespace errors
|
2011-01-12 18:07:53 -08:00 |
|
Santiago Pastorino
|
1de47a0d56
|
button_tag should escape it content
|
2011-01-12 22:05:52 -02:00 |
|
Santiago Pastorino
|
20897a6c2c
|
Allow generators nested in more than one level
|
2011-01-12 21:42:56 -02:00 |
|
Aaron Patterson
|
c76c699f30
|
turn off deprecation silencing
|
2011-01-12 15:28:57 -08:00 |
|
Aaron Patterson
|
e1beb7d287
|
use array maths rather than *args
|
2011-01-12 15:15:45 -08:00 |
|
Aaron Patterson
|
8f9944d5bc
|
just use return value of load_target
|
2011-01-12 14:29:17 -08:00 |
|
Aaron Patterson
|
e9980f17fd
|
just call methods on return value of load_target
|
2011-01-12 14:27:08 -08:00 |
|
Aaron Patterson
|
bc993c690b
|
default return value is nil
|
2011-01-12 14:27:08 -08:00 |
|
Aaron Patterson
|
49696e0a62
|
@loaded is defined in initialize, so we should not need this
|
2011-01-12 14:27:08 -08:00 |
|
Aaron Patterson
|
8bee98fe3a
|
just use respond_to? and super rather than aliasing around methods
|
2011-01-12 14:27:08 -08:00 |
|
Xavier Noria
|
c07961ee54
|
fixes a comment in the generated app Gemfile
|
2011-01-12 21:22:38 +01:00 |
|
Xavier Noria
|
8b293e99ff
|
Merge branch 'master' of github.com:rails/rails
|
2011-01-12 21:19:10 +01:00 |
|
Xavier Noria
|
5bc98c9510
|
defines a :doc group in the project's Rakefile, just for the sake of clarity
|
2011-01-12 21:15:57 +01:00 |
|
Xavier Noria
|
1f28d1011e
|
adds a sample gem call for RedCloth in the generated app Gemfile
|
2011-01-12 21:14:34 +01:00 |
|
Xavier Noria
|
74188cbff4
|
upgrades RedCloth dependency to ~> 4.2, adds RedCloth to the project's Rakefile, removes gem call from the guides generator (use bundle exec if needed)
|
2011-01-12 21:12:44 +01:00 |
|
Xavier Noria
|
37bd45f893
|
upgrades to RDoc ~> 3.4 and removes the gem call in root Rakefile (use bundle exec if needed)
|
2011-01-12 20:59:31 +01:00 |
|
Aaron Patterson
|
31293ba9d3
|
remove locales external to the system before assertion
|
2011-01-12 11:15:11 -08:00 |
|
Aaron Patterson
|
16ae08fff0
|
use raise to create exceptions and to set the backtrace
|
2011-01-12 11:15:11 -08:00 |
|
Aaron Patterson
|
1d9c555297
|
reraising should be in the rescue block
|
2011-01-12 11:15:10 -08:00 |
|
Santiago Pastorino
|
daada51d10
|
Reuse the view_context from the controller, this make the test environment more similar to the code applications uses
|
2011-01-12 16:47:56 -02:00 |
|
Aaron Patterson
|
6ddabaa90c
|
sorry, the CI cannot lie to us anymore
|
2011-01-12 09:47:04 -08:00 |
|
Josh Kalderimis
|
199e220e88
|
Fixed various isolated test missing requires within AS.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-01-12 12:37:28 -02:00 |
|
Josh Kalderimis
|
de18b85969
|
In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, date_time, and time conversions.rb. This fixes an issue when requiring json and AS saying that i18n is also required.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-01-12 12:37:01 -02:00 |
|
Santiago Pastorino
|
de5852f1a6
|
CI should run isolated tests
|
2011-01-12 12:36:14 -02:00 |
|
Santiago Pastorino
|
6062d434f1
|
Allow view in AV::TestCase to access it's controller helpers methods
|
2011-01-12 12:14:00 -02:00 |
|
Aaron Patterson
|
f8700038af
|
adding a test for no method error
|
2011-01-11 17:57:02 -08:00 |
|
Aaron Patterson
|
fcd8925f23
|
use underlying _read_attribute method rather than causing NoMethodErrors
|
2011-01-11 15:39:26 -08:00 |
|
Aaron Patterson
|
5696d948ed
|
kill unused variable warnings
|
2011-01-11 15:29:35 -08:00 |
|
Aaron Patterson
|
8c71e8b18f
|
lazily instantiate AR objects in order to avoid NoMethodErrors
|
2011-01-11 15:16:09 -08:00 |
|
Jon Leighton
|
af96018c91
|
test_with_polymorphic_and_condition works without the conditions methods in BelongsToPolymorphicAssociation because the conditions are added straight to the association_scope as of a few days ago
|
2011-01-11 13:45:09 -08:00 |
|
Jon Leighton
|
552df9b933
|
Support for create_association! for has_one associations
|
2011-01-11 13:45:09 -08:00 |
|
Jon Leighton
|
d88caa6e4a
|
Refactor the code for singular association constructors. This will allow me to define a create_association! method in a minute.
|
2011-01-11 13:45:09 -08:00 |
|
Jon Leighton
|
f4a88e810f
|
It's not necessary to pass the association proxy class around now
|
2011-01-11 13:45:09 -08:00 |
|
Jon Leighton
|
681ab53ba1
|
Get rid of set_association_target and association_loaded? as the parts of the code that need that can now just use association_proxy(:name).loaded?/target=
|
2011-01-11 13:45:08 -08:00 |
|
Jon Leighton
|
42b2e4f85b
|
We can use the association_proxy method directly in HasOneThroughAssociation now
|
2011-01-11 13:45:08 -08:00 |
|
Jon Leighton
|
3b797c8c86
|
DRY up the code which instantiates the association proxy
|
2011-01-11 13:45:08 -08:00 |
|
Jon Leighton
|
4754018272
|
find_target can be inherited
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
9086b02ba5
|
Document the recent changes to association assignment
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
6055bbedaa
|
Raise ActiveRecord::RecordNotSaved if an AssociationCollection fails to be replaced
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
1d6e218428
|
When assigning a has_one, if anything fails, the assignment should be rolled back entirely
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
4e19ec566c
|
In a number of places in the tests, we only need to turn off transactional fixtures when the DB does not support savepoints. This speeds the test run up by about 8-9% on my computer, when running rake test_sqlite3_mem :)
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
29452abb84
|
SQLite3 has supported savepoints since version 3.6.8, we should use this!
|
2011-01-11 13:45:07 -08:00 |
|
Jon Leighton
|
7f7b480098
|
When assigning a has_one, if the new record fails to save, raise an error
|
2011-01-11 13:45:07 -08:00 |
|