Class: MockWeb
- Defined in:
- app/models/page_test.rb,
app/models/revision_test.rb
Instance Attribute Summary collapse
-
#markup ⇒ Object
Returns the value of attribute markup.
Attributes inherited from Web
#additional_style, #address, #brackets_only, #check_pass_on_edit, #color, #count_pages, #default_to_published, #enable_dclick_edit, #enable_menu, #links_map, #menu_category, #menu_content, #menu_limit, #menu_type, #mind_map_size, #mm_graph_type, #mm_prog, #mm_selected_categories, #mm_show_authors, #mm_show_leaves, #mm_show_missing, #name, #password, #published, #rendered_menu, #symbols_map
Instance Method Summary collapse
- #[](wiki_word) ⇒ Object
-
#initialize ⇒ MockWeb
constructor
A new instance of MockWeb.
- #pages ⇒ Object
- #refresh_pages_with_references(name) ⇒ Object
- #safe_mode ⇒ Object
Methods inherited from Web
#add_bliki_entry, #add_page, #authors, #bliki, #bliki_entries_authored_by, #bliki_entries_by_date, #bliki_entries_by_name, #bliki_entries_that_match, #bliki_entries_that_reference, #call_graphviz, #categories, #create_author_graph, #create_category_graph, #create_mind_map, #filter_categories, #make_link, #output_graph_footer_to, #output_graph_header_to, #refresh_revisions, #remove_pages, #revised_on, #select, #select_bliki
Constructor Details
#initialize ⇒ MockWeb
Returns a new instance of MockWeb.
6 |
# File 'app/models/page_test.rb', line 6 def initialize() super('test','test') end |
Instance Attribute Details
#markup ⇒ Object
Returns the value of attribute markup.
6 7 8 |
# File 'app/models/revision_test.rb', line 6 def markup @markup end |
Instance Method Details
#[](wiki_word) ⇒ Object
7 |
# File 'app/models/page_test.rb', line 7 def [](wiki_word) %w( MyWay ThatWay SmartEngine ).include?(wiki_word) end |
#pages ⇒ Object
7 |
# File 'app/models/revision_test.rb', line 7 def pages() MockPages.new end |
#refresh_pages_with_references(name) ⇒ Object
8 |
# File 'app/models/page_test.rb', line 8 def refresh_pages_with_references(name) end |
#safe_mode ⇒ Object
8 |
# File 'app/models/revision_test.rb', line 8 def safe_mode() false end |