1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

Inline these blocks

[skip ci]
This commit is contained in:
Jon Atack 2015-08-29 19:25:37 +02:00
parent d19800b480
commit 97fc4273e2

View file

@ -19,13 +19,8 @@ module Ransack
before do before do
@controller = ActionView::TestCase::TestController.new @controller = ActionView::TestCase::TestController.new
@controller.instance_variable_set(:@_routes, router) @controller.instance_variable_set(:@_routes, router)
@controller.class_eval do @controller.class_eval { include router.url_helpers }
include router.url_helpers @controller.view_context_class.class_eval { include router.url_helpers }
end
@controller.view_context_class.class_eval do
include router.url_helpers
end
end end
describe '#sort_link with default search_key' do describe '#sort_link with default search_key' do