Revision 9d43fc71
Added by Michael Moll almost 6 years ago
test/unit/hash_for_test.rb | ||
---|---|---|
end
|
||
|
||
test "hash_for_* causes link_to to generate links to root from within nested controller" do
|
||
opts = url_options.merge(:_recall => {:controller=>"foreman_example/examples", :action=>"index"})
|
||
opts = url_options.merge(:_recall => {:controller => "foreman_example/examples", :action => "index"})
|
||
expects(:url_options).returns(opts)
|
||
assert_includes link_to('test', hash_for_hosts_path), 'href="/hosts"'
|
||
end
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop