Skip to content

Commit

Permalink
Added failing tests for helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Guidi committed Apr 5, 2009
1 parent bedcfae commit c6d1476
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.rb
@@ -1,5 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
require 'active_support/test_case'
require 'action_view/test_case'

class ActiveSupport::TestCase
private
Expand Down
24 changes: 24 additions & 0 deletions test/unit/helpers/helper_test.rb
@@ -0,0 +1,24 @@
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

class HelperTest < ActionView::TestCase
test "implement me" do
assert false
end

# test "authenticity_token with protection from forgery active" do
# assert_equal form_authenticity_token, authenticity_token
# end
#
# test "authenticity_token with protection from forgery inactive" do
# assert_equal "", authenticity_token
# end
#
# test "locales" do
# assert_equal I18n.available_locales, locales
# end
#
# test "languages_menu" do
# expected = %(<ul><li><a href="/locales/set/en" title="* en">* en</a></li> | <li><a href="/locales/set/it" title="it">it</a></li></ul>)
# assert_equal expected, languages_menu
# end
end

0 comments on commit c6d1476

Please sign in to comment.