diff options
author | Stefan Penner <stefan.penner@gmail.com> | 2010-01-21 17:21:43 -0600 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:30 -0600 |
commit | 8f97e03fb01c39038f40f4a30fa2fe8e493e4691 (patch) | |
tree | f5fc810a86ec35cde8814e1e235bc420a9f6366f /actionpack/test/template | |
parent | 773c4929fda3eff30e096813d25a61802638ab65 (diff) | |
download | rails-8f97e03fb01c39038f40f4a30fa2fe8e493e4691.tar.gz rails-8f97e03fb01c39038f40f4a30fa2fe8e493e4691.tar.bz2 rails-8f97e03fb01c39038f40f4a30fa2fe8e493e4691.zip |
fixed failing tests
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/ajax_test.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/actionpack/test/template/ajax_test.rb b/actionpack/test/template/ajax_test.rb index 8770401b96..86932d754f 100644 --- a/actionpack/test/template/ajax_test.rb +++ b/actionpack/test/template/ajax_test.rb @@ -54,7 +54,7 @@ class LinkToRemoteTest < AjaxTestCase end test "with no update" do - assert_html link, %w(href="/blog/destroy/4" Delete\ this\ post data-remote="true") + assert_html link, %w(href="/blog/destroy/3" Delete\ this\ post data-remote="true") end test "with :html options" do @@ -102,17 +102,10 @@ class ButtonToRemoteTest < AjaxTestCase button_to_remote("Remote outpost", options, html) end - def url_for(*) - "/whatnot" - end - class StandardTest < ButtonToRemoteTest test "basic" do - button = button({:url => {:action => "whatnot"}}, {:class => "fine"}) - [/input/, /class="fine"/, /type="button"/, /value="Remote outpost"/, - /data-url="\/whatnot"/].each do |match| - assert_match(match, button) - end + assert_html button({:url => {:action => "whatnot"}}, {:class => "fine"}), + %w(input class="fine" type="button" value="Remote outpost" data-url="/url/hash") end end |