1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove old unavailable link with relevant fix

This commit is contained in:
Gaurav Sharma 2015-03-22 09:34:01 +05:30
parent 5d6500535c
commit 29efc6ee05
4 changed files with 4 additions and 7 deletions

View file

@ -63,7 +63,7 @@ class RedirectController < ActionController::Base
end end
def redirect_to_url_with_unescaped_query_string def redirect_to_url_with_unescaped_query_string
redirect_to "http://dev.rubyonrails.org/query?status=new" redirect_to "http://example.com/query?status=new"
end end
def redirect_to_url_with_complex_scheme def redirect_to_url_with_complex_scheme
@ -233,7 +233,7 @@ class RedirectTest < ActionController::TestCase
def test_redirect_to_url_with_unescaped_query_string def test_redirect_to_url_with_unescaped_query_string
get :redirect_to_url_with_unescaped_query_string get :redirect_to_url_with_unescaped_query_string
assert_response :redirect assert_response :redirect
assert_redirected_to "http://dev.rubyonrails.org/query?status=new" assert_redirected_to "http://example.com/query?status=new"
end end
def test_redirect_to_url_with_complex_scheme def test_redirect_to_url_with_complex_scheme

View file

@ -905,8 +905,7 @@ module ActiveRecord
def configure_connection def configure_connection
variables = @config.fetch(:variables, {}).stringify_keys variables = @config.fetch(:variables, {}).stringify_keys
# By default, MySQL 'where id is null' selects the last inserted id. # By default, MySQL 'where id is null' selects the last inserted id; Turn this off.
# Turn this off. http://dev.rubyonrails.org/ticket/6778
variables['sql_auto_is_null'] = 0 variables['sql_auto_is_null'] = 0
# Increase timeout so the server doesn't disconnect us. # Increase timeout so the server doesn't disconnect us.

View file

@ -947,7 +947,6 @@ class FinderTest < ActiveRecord::TestCase
end end
end end
# http://dev.rubyonrails.org/ticket/6778
def test_find_ignores_previously_inserted_record def test_find_ignores_previously_inserted_record
Post.create!(:title => 'test', :body => 'it out') Post.create!(:title => 'test', :body => 'it out')
assert_equal [], Post.where(id: nil) assert_equal [], Post.where(id: nil)

View file

@ -68,8 +68,7 @@ class ModulesTest < ActiveRecord::TestCase
end end
end end
# need to add an eager loading condition to force the eager loading model into # An eager loading condition to force the eager loading model into the old join model.
# the old join model, to test that. See http://dev.rubyonrails.org/ticket/9640
def test_eager_loading_in_modules def test_eager_loading_in_modules
clients = [] clients = []