Browse files

fixing failing tests from last commit, order of attributes matters sh…

…ould probably change this later
  • Loading branch information...
1 parent 1cd8b98 commit 5462caf434d7313b0a5bff75fd2bca35bbaf42a6 @erikstmartin erikstmartin committed with stefanpenner Jan 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/ajax_helper_test.rb
View
4 actionpack/test/template/ajax_helper_test.rb
@@ -58,7 +58,7 @@ def link(options = {})
end
test "with :html options" do
- expected = %{<a href="/blog/destroy/3" data-custom="me" data-remote="true" data-update-success="#posts">Delete this post</a>}
+ expected = %{<a data-custom="me" data-remote="true" data-update-success="#posts" href="/blog/destroy/3">Delete this post</a>}
assert_equal expected, link(:update => "#posts", :html => {"data-custom" => "me"})
end
@@ -86,7 +86,7 @@ def link(options)
end
test "basic link_to_remote with :url =>" do
- expected = %{<a href="/blog/destroy/4" data-remote="true" data-update-success="#posts">Delete this post</a>}
+ expected = %{<a data-remote="true" data-update-success="#posts" href="/blog/destroy/4">Delete this post</a>}
assert_equal expected,
link_to_remote("Delete this post", :url => "/blog/destroy/4", :update => "#posts")
end

0 comments on commit 5462caf

Please sign in to comment.