module NoosferoTestHelper
def link_to(content, url, options = {})
"#{content}"
end
def content_tag(tag, content, options = {})
tag_attr = options.blank? ? '' : ' ' + options.collect{ |o| "#{o[0]}=\"#{o[1]}\"" }.join(' ')
"<#{tag}#{tag_attr}>#{content}#{tag}>"
end
def submit_tag(content, options = {})
content
end
def remote_function(options = {})
''
end
def tag(tag, args = {})
attrs = args.map{|k,v| "#{k}='#{v}'"}.join(' ')
"<#{tag} #{attrs} />"
end
def options_from_collection_for_select(collection, value_method, content_method)
""
end
def select_tag(id, collection, options = {})
""
end
def options_for_select(collection, selected = nil)
collection.map{|item| ""}.join("\n")
end
def params
{}
end
def ui_icon(icon)
icon
end
def will_paginate(arg1, arg2)
end
def javascript_tag(any)
''
end
def javascript_include_tag(any)
''
end
def check_box_tag(name, value = 1, checked = false, options = {})
name
end
def stylesheet_link_tag(arg)
arg
end
def strip_tags(html)
html.gsub(/<[^>]+>/, '')
end
def icon_for_article(article)
''
end
end