noosfero_test_helper.rb
1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
##
# DEPRECATED ActionView::TestCase already provide all needed
#
module NoosferoTestHelper
def submit_tag(content, options = {})
content
end
def remote_function(options = {})
''
end
def options_from_collection_for_select(collection, value_method, content_method)
"<option value='fake value'>fake content</option>"
end
def select_tag(id, collection, options = {})
"<select id='#{id}'>fake content</select>"
end
def options_for_select(collection, selected = nil)
collection.map{|item| "<option value='#{item[1]}'>#{item[0]}</option>"}.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