- 16 2月, 2016 14 次提交
-
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
Let t.foreign_key use the same `to_table` twice Conflicts: activerecord/CHANGELOG.md
-
由 Yves Senn 提交于
Whenever you are sending emails in integration tests using the `:test` delivery method you need to make sure that `ActionMailer::Base.deliveries` is reset after every test. This piece of boilerplate code is present in all my applications that send emails. Let's have `ActionDispatch::IntegrationTest` reset the deliveries automatically.
-
由 Yves Senn 提交于
Use a URL instead of an URL everywhere
-
由 Yves Senn 提交于
Add missing CHANGELOG for regression fix in #18155 which fixes #13387
-
由 Vipul A M 提交于
[ci skip]
-
由 Andrew White 提交于
-
由 Andrew White 提交于
A cookie value is incorrect if value contains an escapable string in Rails 5 ActionController::TestCase
-
由 Andrew White 提交于
Multiple cookie values should be separated by '; ' according to RFC 6265, section 5.4.4[1]. [1]: https://tools.ietf.org/html/rfc6265#section-5.4
-
由 Andrew White 提交于
-
由 Andrew White 提交于
The `cookies` hash isn't updated with the value generated by the output from `to_header` so it wasn't testing anything. Rendering the cookie value in the controller makes sure that the escaping is actually working.
-
https://github.com/ma2gedev/rails由 Andrew White 提交于
Merge branch 'should-escape-cookie' of https://github.com/ma2gedev/rails into ma2gedev-should-escape-cookie
-
由 George Millo 提交于
Previously if you used `t.foreign_key` twice within the same `create_table` block using the same `to_table`, all statements except the final one would fail silently. For example, the following code: def change create_table :flights do |t| t.integer :from_id, index: true, null: false t.integer :to_id, index: true, null: false t.foreign_key :airports, column: :from_id t.foreign_key :airports, column: :to_id end end Would only create one foreign key, on the column `from_id`. This commit allows multiple foreign keys to the same table to be created within one `create_table` block.
-
由 Yves Senn 提交于
-
- 15 2月, 2016 26 次提交
-
-
由 Abhishek Jain 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
generate mailer views in Rails API
-
由 Yves Senn 提交于
This reverts commit 0db31058. Closes #23686. Conflicts: railties/test/application/test_runner_test.rb It's possible that the `result.location` returned by minitest is outside the test file itself. For example in the case of mocha. This resulted in bad rerun snipptets: ``` bin/rails test app/models/deliveries/delivery.rb:103 ``` Let's always use the first line of the failed test-case in our rerun snippet. We can display the line number of the assertion error elsewhere.
-
由 Eileen M. Uchitelle 提交于
Fix small typo in i18n guide [ci skip]
-
由 Mehmet Emin İNAÇ 提交于
-
由 David Heinemeier Hansson 提交于
Add `#on_weekday?` method to `Date`, `Time`, and `DateTime`.
-
由 Eileen M. Uchitelle 提交于
Corrected secret_key_base
-
由 yuuji.yaginuma 提交于
View files is necessary to send mail, it should be generated even Rails API. Fixes #23617
-
由 Vipul A M 提交于
-
由 vs4vijay 提交于
-
由 Vipul A M 提交于
mark as #:nodoc: [ci skip]
-
由 Yves Senn 提交于
remove `active_support.test_order` from environment file
-
由 Yves Senn 提交于
Remove the method already overridden by private method
-
由 Gaurav Sharma 提交于
can’t be instantiate directly or may be no need for doc.
-
由 Yves Senn 提交于
Update dalli gem
-
由 Eileen M. Uchitelle 提交于
Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS`
-
由 Ryuta Kamizono 提交于
`NEVER_UNPERMITTED_PARAMS` is deprecated in Rails 4.2. See #15933.
-
由 Kasper Timm Hansen 提交于
Inject Rails related configuration through Railtie
-
由 Kasper Timm Hansen 提交于
The `WorkerTest`'s `Receiver` is imporsonating an `ActionCable::Connection::Base`, but just delegates the logger to `ActionCable.logger`. This creates a mismatch as the connection requires the logger to be a `TaggedLoggerProxy`'ied logger, while the server doesn't. Thus to ensure an exception isn't raised when the worker tries to call `tag` other tests have to assign a proxied logger to their test server. Instead of forcing change on other tests, have Receiver adhere to the connection contract and use a `TaggedLoggerProxy`. As a consequence remove more setup from the tests.
-
由 Kasper Timm Hansen 提交于
Instead of depending on ApplicationCable::Connection being defined at initialize we should inject it in the Railtie. Thus we can kill more setup in the tests too.
-
由 Kasper Timm Hansen 提交于
We were explicitly referencing Rails.root in ActionCable::Server::Configuration.initialize, thereby coupling ourselves to Rails. Instead add `app/channels` to Rails' app paths and assign the existent files to `channel_paths`. Users can still append to those load paths with `<<` and `push` in `config/application.rb`. This means we can remove the custom `Dir` lookup in `channel_paths` and the Rails and root definitions in the tests.
-
由 Jon Moss 提交于
[ci skip] line_statistics added to README
-
由 Sourav Moitra 提交于
-