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:
parent
d19800b480
commit
97fc4273e2
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue