File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,12 @@ def fuzzy_results
47
47
end
48
48
49
49
test "info controller allows requests when all requests are considered local" do
50
+ @request . env [ "REMOTE_ADDR" ] = "example.org"
51
+ Rails . application . config . consider_all_requests_local = true
50
52
get :properties
51
53
assert_response :success
54
+ ensure
55
+ Rails . application . config . consider_all_requests_local = false
52
56
end
53
57
54
58
test "info controller allows local requests" do
@@ -82,7 +86,7 @@ def fuzzy_results
82
86
assert_select ( "table tr" ) do
83
87
assert_select ( "td" , text : "test_nested_route_path" )
84
88
assert_select ( "td" , text : "test/test#show" )
85
- assert_select ( "td" , text : "#{ __FILE__ } :75 " )
89
+ assert_select ( "td" , text : "#{ __FILE__ } :79 " )
86
90
end
87
91
end
88
92
You can’t perform that action at this time.
0 commit comments