1414$:. unshift File . expand_path ( "../../lib" , __FILE__ )
1515require 'jquery_ui_rails_helpers'
1616
17- # https://gist.github.com/52976
18- # module HelpersSelectorAsssertions
19- # def assert_select_in(html, *args, &block)
20- # node = HTML::Document.new(html).root
21- # assert_select(*args.unshift(node), &block)
22- # end
23- # end
24- # ActionView::TestCase.send(:include, HelpersSelectorAsssertions)
25-
2617class ActionView ::TestCase
2718
28- # Take care of RuntimeError:
19+ # Take care of the RuntimeError:
2920# In order to use #url_for, you must include routing helpers explicitly.
3021# For instance, `include Rails.application.routes.url_helpers
3122 setup :shhhhhh_url_helpers
@@ -40,22 +31,4 @@ def self.url_helpers
4031 end
4132 end
4233
43- # setup :setup_with_controller
44- #
45- # def setup_with_controller
46- # @controller = ActionView::TestCase::TestController.new
47- # def @controller._routes
48- # Module.new do
49- # def self.url_helpers
50- # Module.new
51- # end
52- # end
53- # end
54- # @request = @controller.request
55- # @output_buffer = ActiveSupport::SafeBuffer.new
56- # @rendered = ''
57- # make_test_case_available_to_view!
58- # say_no_to_protect_against_forgery!
59- # end
60-
6134end
0 commit comments