- 25 9月, 2015 4 次提交
-
-
由 Rafael Mendonça França 提交于
Make `assert_difference` return the result of the yielded block.
-
由 Lucas Mazza 提交于
With this we can perform new assertions on the returned value without having to cache it with an outer variable or wrapping all subsequent assertions inside the `assert_difference` block. Before: ``` post = nil assert_difference -> { Post.count }, 1 do Post.create end assert_predicate post, :persisted? ``` Now: ``` post = assert_difference -> { Post.count } do Post.create end assert_predicate post, :persisted? ```
-
由 Rafael Mendonça França 提交于
Fix typo in ignored_columns test [skip ci]
-
由 Jon Atack 提交于
Follow-up to #21720.
-
- 24 9月, 2015 36 次提交
-
-
由 Sean Griffin 提交于
Implement ActiveRecord::Base.ignored_columns
-
由 Jean Boussier 提交于
-
由 Sean Griffin 提交于
ActiveRecord: use association's `unscope` when preloading
-
由 Sean Griffin 提交于
Fix a bug with returning_disabled when using the postgresql adapter
-
由 Kasper Timm Hansen 提交于
Improve readability of docs by using code tag [ci skip]
-
由 amitkumarsuroliya 提交于
-
由 Yves Senn 提交于
[ci skip] [Action View Overview Guide] Add note about Jbuilder
-
由 Yves Senn 提交于
Fix ActiveRecord `instance_method_already_implemented` docs [ci skip]
-
由 Yves Senn 提交于
Fix out of sync comment [ci skip]
-
由 Brandon Conway 提交于
It appears that as of version 4 the `db:test:prepare` task no longer depends on the `abort_if_pending_migrations` task, which leaves this comment out of sync.
-
由 amitkumarsuroliya 提交于
-
由 Aaron Patterson 提交于
we want the request to go through the test harness, not directly call the methods on the controller
-
由 Aaron Patterson 提交于
also remove req / res references
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
again, since we are going through the test harness, all this is done for us.
-
由 Aaron Patterson 提交于
Since we just go through the normal test harness that sets up a request for us, we don't need to do this anymore.
-
由 Aaron Patterson 提交于
rather than calling methods on the controller. We should test the values returned by the controller rather than assuming that the internals are implemented in a certain way.
-
由 Aaron Patterson 提交于
I'm making this change so that I can construct response objects that *don't* have the default headers applied. For example, I would like to construct a response object from the return value of a controller. If you need to construct a response object with the default headers, then please use the alternate constructor: `ActionDispatch::Response.create`
-
由 Eileen M. Uchitelle 提交于
Change the paths for both Gemfile lines to be 'engines/blorgh'
-
由 Sean Griffin 提交于
Fix ActiveRecord::Locking doc [ci skip]
-
由 Mehmet Emin İNAÇ 提交于
-
由 Kasper Timm Hansen 提交于
WIP: Fix the AS::Callbacks terminator regression from 4.2.3
-
由 Kasper Timm Hansen 提交于
Document Bearer prefix for Authorization header [ci skip]
-
由 Kasper Timm Hansen 提交于
Removed Mocha from app generators tests
-
由 Sean Collins 提交于
[skip ci]
-
由 Sean Griffin 提交于
skipped assertion on datetime seconds precision as it is only valid for newer mysql verions
-
由 Aaron Patterson 提交于
It doesn't make sense to access the response object before a request is made (how was a response object created without making a request?) This commit splits testing default headers and default header mutation tests and removes access to the pre-request response object.
-
由 Ronak Jangir 提交于
-
由 Sean Collins 提交于
They're now consistent. Also changes the quotes to be single, so we only have one type of quote per line [skip ci]
-
由 Aaron Patterson 提交于
these should really be multiple tests.
-
由 Aaron Patterson 提交于
When the response object is `to_a`'d, that means it's been written to the socket. It doesn't make sense to mutate the response object after it's been written (and this may raise an exception in the future).
-
由 Ronak Jangir 提交于
-
由 Eliot Sykes 提交于
-