diff options
author | Erik St. Martin <alakriti@gmail.com> | 2010-01-25 19:48:39 -0500 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:34 -0600 |
commit | 44542bd7daf03057fe502f21f3eb2a5c09ffea57 (patch) | |
tree | 9c1d03e583999f64c62f92b46ec53acf000977af /actionpack/test | |
parent | 04ad12d681b13569628f95b44fb13953305e4ddf (diff) | |
download | rails-44542bd7daf03057fe502f21f3eb2a5c09ffea57.tar.gz rails-44542bd7daf03057fe502f21f3eb2a5c09ffea57.tar.bz2 rails-44542bd7daf03057fe502f21f3eb2a5c09ffea57.zip |
account for the fact a few options may be passed as symbols and need to be converted to string
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/ajax_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/ajax_helper_test.rb b/actionpack/test/template/ajax_helper_test.rb index c688b25f70..2e46a38656 100644 --- a/actionpack/test/template/ajax_helper_test.rb +++ b/actionpack/test/template/ajax_helper_test.rb @@ -111,6 +111,11 @@ class AjaxHelperTest < AjaxHelperBaseTest link_to_remote("Remote outauthor", { :url => { :action => "whatnot" }, :method => "delete"}, { :class => "fine" }) end + test "link_to_remote with method delete as symbol" do + assert_dom_equal %(<a class=\"fine\" href=\"#\" data-remote=\"true\" data-url=\"http://www.example.com/whatnot\" data-method=\"delete\" rel=\"nofollow\">Remote outauthor</a>), + link_to_remote("Remote outauthor", { :url => { :action => "whatnot" }, :method => :delete}, { :class => "fine" }) + end + test "link_to_remote html options" do assert_dom_equal %(<a class=\"fine\" href=\"#\" data-remote=\"true\" data-url=\"http://www.example.com/whatnot\">Remote outauthor</a>), link_to_remote("Remote outauthor", { :url => { :action => "whatnot" }, :html => { :class => "fine" } }) |