Skip to content

Commit

Permalink
Seems like to_json has changed in ActiveSupport 2.3.3. Fixing the tes…
Browse files Browse the repository at this point in the history
…ts to reflect.
  • Loading branch information
augustl committed Jul 25, 2009
1 parent b4c86e3 commit 025bd57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/jquery_validations_controller_output_test.rb
Expand Up @@ -49,7 +49,7 @@ def test_validator_options

render

assert rendered_view.include?(%{"errorElement": "span"})
assert rendered_view.include?(%{"errorElement":"span"})
end

def test_validation_on_attributes_without_form_field
Expand All @@ -61,8 +61,8 @@ def test_validation_on_attributes_without_form_field
<% end %>
eof

assert rendered_view.include?(%{"messages": {}})
assert rendered_view.include?(%{"rules": {}})
assert rendered_view.include?(%{"messages":{}})
assert rendered_view.include?(%{"rules":{}})
assert !rendered_view.include?("post[title]")
end

Expand Down
2 changes: 1 addition & 1 deletion test/live_validation_dot_com_controller_output_test.rb
Expand Up @@ -18,6 +18,6 @@ def test_json_output

assert_html 'script[type=text/javascript]'
assert rendered_view.include?(%{new LiveValidation('post_title', {});})
assert rendered_view.include?(%{Validate.Presence, {"failureMessage": "ohai"}})
assert rendered_view.include?(%{Validate.Presence, {"failureMessage":"ohai"}})
end
end

0 comments on commit 025bd57

Please sign in to comment.