File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def remove_annotations(options={})
77
77
end
78
78
79
79
def self . app_routes_map ( options )
80
- routes_map = `rake routes` . split ( /\n / , -1 )
80
+ routes_map = `rake routes` . chomp ( " \n " ) . split ( /\n / , -1 )
81
81
82
82
# In old versions of Rake, the first line of output was the cwd. Not so
83
83
# much in newer ones. We ditch that line if it exists, and if not, we
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ def mock_file(stubs = {})
22
22
expect ( File ) . to receive ( :exists? ) . with ( ROUTE_FILE ) . and_return ( true )
23
23
24
24
expect ( File ) . to receive ( :read ) . with ( ROUTE_FILE ) . and_return ( "" )
25
- expect ( AnnotateRoutes ) . to receive ( :` ) . with ( 'rake routes' ) . and_return ( ' Prefix Verb URI Pattern Controller#Action
25
+ expect ( AnnotateRoutes ) . to receive ( :` ) . with ( 'rake routes' ) . and_return ( " Prefix Verb URI Pattern Controller#Action
26
26
myaction1 GET /url1(.:format) mycontroller1#action
27
27
myaction2 POST /url2(.:format) mycontroller2#action
28
- myaction3 DELETE|GET /url3(.:format) mycontroller3#action' )
28
+ myaction3 DELETE|GET /url3(.:format) mycontroller3#action\n " )
29
29
30
30
expect ( AnnotateRoutes ) . to receive ( :puts ) . with ( ANNOTATION_ADDED )
31
31
end
You can’t perform that action at this time.
0 commit comments