typo 4.1.1 → 5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/apis/meta_weblog_service.rb +7 -14
- data/app/apis/movable_type_service.rb +1 -7
- data/app/controllers/accounts_controller.rb +5 -4
- data/app/controllers/admin/advanced_controller.rb +20 -0
- data/app/controllers/admin/base_controller.rb +16 -6
- data/app/controllers/admin/blacklist_controller.rb +1 -1
- data/app/controllers/admin/cache_controller.rb +5 -4
- data/app/controllers/admin/categories_controller.rb +4 -4
- data/app/controllers/admin/comments_controller.rb +3 -3
- data/app/controllers/admin/content_controller.rb +25 -6
- data/app/controllers/admin/dashboard_controller.rb +33 -0
- data/app/controllers/admin/feedback_controller.rb +28 -16
- data/app/controllers/admin/general_controller.rb +2 -16
- data/app/controllers/admin/pages_controller.rb +13 -3
- data/app/controllers/admin/profiles_controller.rb +36 -0
- data/app/controllers/admin/resources_controller.rb +9 -9
- data/app/controllers/admin/textfilters_controller.rb +1 -1
- data/app/controllers/admin/themes_controller.rb +49 -0
- data/app/controllers/admin/trackbacks_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +8 -2
- data/app/controllers/application.rb +46 -14
- data/app/controllers/articles_controller.rb +67 -144
- data/app/controllers/authors_controller.rb +5 -0
- data/app/controllers/categories_controller.rb +4 -0
- data/app/controllers/comments_controller.rb +72 -0
- data/app/controllers/content_controller.rb +13 -30
- data/app/controllers/feedback_controller.rb +60 -0
- data/app/controllers/grouping_controller.rb +83 -0
- data/app/controllers/redirect_controller.rb +1 -3
- data/app/controllers/tags_controller.rb +3 -0
- data/app/controllers/theme_controller.rb +15 -5
- data/app/controllers/trackbacks_controller.rb +43 -0
- data/app/controllers/xml_controller.rb +52 -34
- data/app/helpers/admin/base_helper.rb +69 -7
- data/app/helpers/admin/feedback_helper.rb +44 -3
- data/app/helpers/admin/general_helper.rb +16 -0
- data/app/helpers/admin/themes_helper.rb +23 -0
- data/app/helpers/application_helper.rb +92 -20
- data/app/helpers/articles_helper.rb +0 -163
- data/app/helpers/authors_helper.rb +5 -0
- data/app/helpers/categories_helper.rb +5 -0
- data/app/helpers/comments_helper.rb +2 -0
- data/app/helpers/content_helper.rb +90 -0
- data/app/helpers/groupings_helper.rb +5 -0
- data/app/helpers/tags_helper.rb +5 -0
- data/app/helpers/theme_helper.rb +14 -14
- data/app/models/article.rb +226 -52
- data/app/models/article/states.rb +191 -0
- data/app/models/blog.rb +52 -15
- data/app/models/blog_sweeper.rb +33 -10
- data/app/models/category.rb +53 -26
- data/app/models/comment.rb +17 -3
- data/app/models/content.rb +60 -60
- data/app/models/feedback.rb +29 -54
- data/app/models/feedback/states.rb +201 -0
- data/app/models/page.rb +1 -4
- data/app/models/page_cache.rb +9 -20
- data/app/models/ping.rb +4 -7
- data/app/models/profile.rb +3 -0
- data/app/models/resource.rb +1 -1
- data/app/models/tag.rb +17 -6
- data/app/models/text_filter.rb +6 -0
- data/app/models/trackback.rb +20 -0
- data/app/models/trigger.rb +3 -2
- data/app/models/user.rb +13 -1
- data/app/views/accounts/login.html.erb +11 -0
- data/app/views/accounts/logout.html.erb +12 -0
- data/app/views/accounts/signup.html.erb +36 -0
- data/app/views/accounts/{welcome.rhtml → welcome.html.erb} +0 -0
- data/app/views/admin/advanced/index.html.erb +182 -0
- data/app/views/admin/base/{_recent_comments.rhtml → _recent_comments.html.erb} +0 -0
- data/app/views/admin/base/{_recent_trackbacks.rhtml → _recent_trackbacks.html.erb} +0 -0
- data/app/views/admin/blacklist/{_blacklist_patterns.rhtml → _blacklist_patterns.html.erb} +0 -0
- data/app/views/admin/blacklist/{_form.rhtml → _form.html.erb} +0 -0
- data/app/views/admin/blacklist/{_quick_post.rhtml → _quick_post.html.erb} +0 -0
- data/app/views/admin/blacklist/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/blacklist/{edit.rhtml → edit.html.erb} +0 -0
- data/app/views/admin/blacklist/{list.rhtml → list.html.erb} +0 -0
- data/app/views/admin/cache/{list.rhtml → list.html.erb} +0 -0
- data/app/views/admin/categories/_categories.html.erb +20 -0
- data/app/views/admin/categories/{_form.rhtml → _form.html.erb} +0 -0
- data/app/views/admin/categories/{_quick_post.rhtml → _quick_post.html.erb} +0 -0
- data/app/views/admin/categories/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/categories/{edit.rhtml → edit.html.erb} +0 -0
- data/app/views/admin/categories/list.html.erb +18 -0
- data/app/views/admin/categories/{reorder.rhtml → reorder.html.erb} +0 -0
- data/app/views/admin/categories/show.html.erb +37 -0
- data/app/views/admin/comments/_form.html.erb +19 -0
- data/app/views/admin/comments/{comments.rhtml → comments.html.erb} +0 -0
- data/app/views/admin/comments/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/comments/{edit.rhtml → edit.html.erb} +0 -0
- data/app/views/admin/comments/list.html.erb +37 -0
- data/app/views/admin/comments/new.html.erb +19 -0
- data/app/views/admin/comments/{show.rhtml → show.html.erb} +0 -0
- data/app/views/admin/content/_articles.html.erb +26 -0
- data/app/views/admin/content/{_attachment.rhtml → _attachment.html.erb} +0 -0
- data/app/views/admin/content/_form.html.erb +89 -0
- data/app/views/admin/content/{_pages.rhtml → _pages.html.erb} +0 -0
- data/app/views/admin/content/{_quick_post.rhtml → _quick_post.html.erb} +0 -0
- data/app/views/admin/content/{_show_categories.rhtml → _show_categories.html.erb} +0 -0
- data/app/views/admin/content/{_show_resources.rhtml → _show_resources.html.erb} +0 -0
- data/app/views/admin/content/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/content/edit.html.erb +10 -0
- data/app/views/admin/content/list.html.erb +21 -0
- data/app/views/admin/content/new.html.erb +6 -0
- data/app/views/admin/content/preview.html.erb +10 -0
- data/app/views/admin/content/show.html.erb +23 -0
- data/app/views/admin/dashboard/index.html.erb +61 -0
- data/app/views/admin/feedback/_button.html.erb +8 -0
- data/app/views/admin/feedback/_item.html.erb +14 -0
- data/app/views/admin/feedback/list.html.erb +48 -0
- data/app/views/admin/general/index.html.erb +141 -0
- data/app/views/admin/general/{update_database.rhtml → update_database.html.erb} +0 -0
- data/app/views/admin/pages/_form.html.erb +41 -0
- data/app/views/admin/pages/_pages.html.erb +24 -0
- data/app/views/admin/pages/{_quick_post.rhtml → _quick_post.html.erb} +0 -0
- data/app/views/admin/pages/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/pages/{edit.rhtml → edit.html.erb} +0 -0
- data/app/views/admin/pages/list.html.erb +12 -0
- data/app/views/admin/pages/new.html.erb +6 -0
- data/app/views/admin/pages/{preview.rhtml → preview.html.erb} +0 -0
- data/app/views/admin/pages/show.html.erb +12 -0
- data/app/views/admin/resources/{_itunes_category_add.rhtml → _itunes_category_add.html.erb} +0 -0
- data/app/views/admin/resources/{_itunes_category_edit.rhtml → _itunes_category_edit.html.erb} +0 -0
- data/app/views/admin/resources/{_metadata_add.rhtml → _metadata_add.html.erb} +0 -0
- data/app/views/admin/resources/{_metadata_edit.rhtml → _metadata_edit.html.erb} +0 -0
- data/app/views/admin/resources/{_mime_edit.rhtml → _mime_edit.html.erb} +0 -0
- data/app/views/admin/resources/{_pages.rhtml → _pages.html.erb} +0 -0
- data/app/views/admin/resources/_resources.html.erb +40 -0
- data/app/views/admin/resources/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/resources/list.html.erb +17 -0
- data/app/views/admin/resources/new.html.erb +16 -0
- data/app/views/admin/shared/_edit.html.erb +13 -0
- data/app/views/admin/sidebar/{_active.rhtml → _active.html.erb} +0 -0
- data/app/views/admin/sidebar/{_actives.rhtml → _actives.html.erb} +0 -0
- data/app/views/admin/sidebar/{_available.rhtml → _available.html.erb} +0 -0
- data/app/views/admin/sidebar/{_availables.rhtml → _availables.html.erb} +0 -0
- data/app/views/admin/sidebar/{_publish.rhtml → _publish.html.erb} +0 -0
- data/app/views/admin/sidebar/{_target.rhtml → _target.html.erb} +0 -0
- data/app/views/admin/sidebar/index.html.erb +43 -0
- data/app/views/admin/textfilters/_form.html.erb +60 -0
- data/app/views/admin/textfilters/_macros.html.erb +16 -0
- data/app/views/admin/textfilters/_textfilters.html.erb +20 -0
- data/app/views/admin/textfilters/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/textfilters/edit.html.erb +14 -0
- data/app/views/admin/textfilters/list.html.erb +18 -0
- data/app/views/admin/textfilters/macro_help.html.erb +3 -0
- data/app/views/admin/textfilters/new.html.erb +16 -0
- data/app/views/admin/textfilters/{preview.rhtml → preview.html.erb} +0 -0
- data/app/views/admin/textfilters/{show.rhtml → show.html.erb} +0 -0
- data/app/views/admin/textfilters/{show_help.rhtml → show_help.html.erb} +0 -0
- data/app/views/admin/themes/editor.html.erb +31 -0
- data/app/views/admin/themes/index.html.erb +30 -0
- data/app/views/admin/trackbacks/{_form.rhtml → _form.html.erb} +0 -0
- data/app/views/admin/trackbacks/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/trackbacks/{edit.rhtml → edit.html.erb} +0 -0
- data/app/views/admin/trackbacks/{list.rhtml → list.html.erb} +0 -0
- data/app/views/admin/trackbacks/{new.rhtml → new.html.erb} +0 -0
- data/app/views/admin/trackbacks/{show.rhtml → show.html.erb} +0 -0
- data/app/views/admin/users/_form.html.erb +55 -0
- data/app/views/admin/users/_user.html.erb +20 -0
- data/app/views/admin/users/{destroy.rhtml → destroy.html.erb} +0 -0
- data/app/views/admin/users/edit.html.erb +17 -0
- data/app/views/admin/users/list.html.erb +32 -0
- data/app/views/admin/users/new.html.erb +15 -0
- data/app/views/admin/users/show.html.erb +23 -0
- data/app/views/articles/{_article.rhtml → _article.html.erb} +0 -0
- data/app/views/articles/_atom_feed.atom.builder +12 -0
- data/app/views/articles/{_comment.rhtml → _comment.html.erb} +0 -0
- data/app/views/articles/_comment_box.html.erb +45 -0
- data/app/views/articles/{_comment_error.rhtml → _comment_error.html.erb} +0 -0
- data/app/views/articles/_rss20_feed.rss.builder +17 -0
- data/app/views/articles/{_trackback.rhtml → _trackback.html.erb} +0 -0
- data/app/views/articles/{archives.rhtml → archives.html.erb} +0 -0
- data/app/views/articles/{comment_preview.rhtml → comment_preview.html.erb} +0 -0
- data/app/views/articles/{error.rhtml → error.html.erb} +0 -0
- data/app/views/articles/{groupings.rhtml → groupings.html.erb} +0 -0
- data/app/views/articles/index.html.erb +11 -0
- data/app/views/articles/read.html.erb +69 -0
- data/app/views/articles/{trackback.rxml → trackback.xml.builder} +0 -0
- data/app/views/articles/{view_page.rhtml → view_page.html.erb} +0 -0
- data/app/views/comments/index.html.erb +1 -0
- data/app/views/comments/show.html.erb +13 -0
- data/app/views/layouts/{accounts.rhtml → accounts.html.erb} +0 -0
- data/app/views/layouts/administration.html.erb +58 -0
- data/app/views/layouts/{minimal.rhtml → minimal.html.erb} +0 -0
- data/app/views/layouts/{sidebar.rhtml → sidebar.html.erb} +0 -0
- data/app/views/live/{search.rhtml → search.html.erb} +0 -0
- data/app/views/notification_mailer/{_mail_footer.rhtml → _mail_footer.html.erb} +0 -0
- data/app/views/notification_mailer/{_mail_header.rhtml → _mail_header.html.erb} +0 -0
- data/app/views/notification_mailer/article.html.erb +6 -0
- data/app/views/notification_mailer/comment.html.erb +11 -0
- data/app/views/notification_mailer/{trackback.rhtml → trackback.html.erb} +0 -0
- data/app/views/settings/{done.rhtml → done.html.erb} +0 -0
- data/app/views/settings/{install.rhtml → install.html.erb} +0 -0
- data/app/views/shared/_loginform.html.erb +14 -0
- data/app/views/shared/_search.html.erb +10 -0
- data/app/views/sidebar/{_row.rhtml → _row.html.erb} +0 -0
- data/app/views/sidebar/{_sidebar.rhtml → _sidebar.html.erb} +0 -0
- data/app/views/sidebar/{display_plugins.rhtml → display_plugins.html.erb} +0 -0
- data/app/views/sidebar/{show.rhtml → show.html.erb} +0 -0
- data/app/views/theme/{static_view_test.rhtml → static_view_test.html.erb} +0 -0
- data/app/views/xml/{_atom10_item_article.rxml → _atom10_item_article.atom.builder} +0 -0
- data/app/views/xml/{_atom10_item_comment.rxml → _atom10_item_comment.atom.builder} +0 -0
- data/app/views/xml/{_atom10_item_trackback.rxml → _atom10_item_trackback.atom.builder} +0 -0
- data/app/views/xml/{_googlesitemap_item_article.rxml → _googlesitemap_item_article.googlesitemap.builder} +0 -0
- data/app/views/xml/{_googlesitemap_item_category.rxml → _googlesitemap_item_category.googlesitemap.builder} +0 -0
- data/app/views/xml/{_googlesitemap_item_page.rxml → _googlesitemap_item_page.googlesitemap.builder} +0 -0
- data/app/views/xml/{_googlesitemap_item_tag.rxml → _googlesitemap_item_tag.googlesitemap.builder} +0 -0
- data/app/views/xml/{_itunes_item_resource.rxml → _itunes_item_resource.xml.builder} +0 -0
- data/app/views/xml/{_rss20_item_article.rxml → _rss20_item_article.rss.builder} +0 -0
- data/app/views/xml/{_rss20_item_comment.rxml → _rss20_item_comment.rss.builder} +0 -0
- data/app/views/xml/{_rss20_item_trackback.rxml → _rss20_item_trackback.rss.builder} +0 -0
- data/app/views/xml/feed.atom.builder +18 -0
- data/app/views/xml/{googlesitemap_feed.rxml → feed.googlesitemap.builder} +0 -0
- data/app/views/xml/feed.rss.builder +18 -0
- data/app/views/xml/itunes_feed.rss.builder +29 -0
- data/app/views/xml/rsd.rsd.builder +19 -0
- data/bin/typo +55 -0
- data/config/boot.rb +1 -1
- data/config/environment.rb +26 -17
- data/config/environments/development.rb +0 -3
- data/config/environments/test.rb +1 -0
- data/config/initializers/mime_types.rb +3 -0
- data/config/routes.rb +118 -59
- data/db/migrate/001_initial_schema.rb +20 -5
- data/db/migrate/004_add_sidebars.rb +11 -5
- data/db/migrate/008_add_page_title.rb +11 -0
- data/db/migrate/016_fix_is_primary_postgres.rb +4 -7
- data/db/migrate/036_add_tag_display_name.rb +1 -3
- data/db/migrate/056_create_notifications.rb +1 -0
- data/db/migrate/057_add_categorization_model.rb +2 -2
- data/db/migrate/058_separate_entries_and_feedback.rb +13 -0
- data/db/migrate/060_cleanup_contents_table.rb +2 -2
- data/db/migrate/063_rejig_state_field.rb +40 -0
- data/db/migrate/064_add_users_profile.rb +32 -0
- data/db/migrate/065_add_users_rights.rb +116 -0
- data/db/schema.mysql.sql +107 -165
- data/db/schema.postgresql.sql +107 -165
- data/db/schema.rb +143 -120
- data/db/schema.sqlite.sql +107 -165
- data/db/schema.sqlserver.sql +108 -170
- data/db/schema_version +1 -1
- data/lang/de_DE.rb +4 -2
- data/lang/fr_FR.rb +65 -3
- data/lang/ro_RO.rb +4 -2
- data/lib/bare_migration.rb +3 -0
- data/lib/generators/sidebar/templates/{content.rhtml → content.html.erb} +0 -0
- data/lib/login_system.rb +2 -2
- data/lib/route_cache.rb +1 -1
- data/lib/stateful.rb +107 -0
- data/lib/tasks/rcov.rake +38 -0
- data/lib/tasks/release.rake +21 -10
- data/lib/text_filter_plugin.rb +11 -5
- data/lib/transforms.rb +1 -1
- data/lib/typo_deprecated.rb +11 -0
- data/public/.htaccess +3 -2
- data/public/images/admin/bc-bg.gif +0 -0
- data/public/images/admin/bgdivider.gif +0 -0
- data/public/images/admin/bgdivider.png +0 -0
- data/public/images/admin/bgoff.png +0 -0
- data/public/images/admin/bgoff2.png +0 -0
- data/public/images/admin/bgon.png +0 -0
- data/public/images/admin/bgover.png +0 -0
- data/public/images/admin/bgselected.png +0 -0
- data/public/images/admin/cancel.png +0 -0
- data/public/images/admin/checked.png +0 -0
- data/public/images/admin/delete.png +0 -0
- data/public/images/admin/edit.png +0 -0
- data/public/images/admin/foot.jpg +0 -0
- data/public/images/{help.png → admin/help.png} +0 -0
- data/public/images/admin/loginformbg.png +0 -0
- data/public/images/admin/show.png +0 -0
- data/public/images/admin/table-header-first.png +0 -0
- data/public/images/admin/table-header-last.png +0 -0
- data/public/images/admin/table-header.png +0 -0
- data/public/images/admin/top.gif +0 -0
- data/public/images/admin/typo.gif +0 -0
- data/public/images/admin/typologo.png +0 -0
- data/public/javascripts/lightbox.js +1 -1
- data/public/javascripts/tiny_mce/langs/en.js +154 -41
- data/public/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
- data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +49 -0
- data/public/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
- data/public/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/advimage/js/image.js +403 -0
- data/public/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
- data/public/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
- data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
- data/public/javascripts/tiny_mce/plugins/advlink/js/advlink.js +551 -0
- data/public/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
- data/public/javascripts/tiny_mce/plugins/advlink/link.htm +339 -0
- data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
- data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +84 -0
- data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
- data/public/javascripts/tiny_mce/plugins/emotions/emotions.htm +41 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
- data/public/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
- data/public/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
- data/public/javascripts/tiny_mce/plugins/media/css/media.css +68 -0
- data/public/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +323 -0
- data/public/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/public/javascripts/tiny_mce/{themes/advanced/images/spacer.gif → plugins/media/img/trans.gif} +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
- data/public/javascripts/tiny_mce/plugins/media/js/media.js +616 -0
- data/public/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
- data/public/javascripts/tiny_mce/plugins/media/media.htm +823 -0
- data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
- data/public/javascripts/tiny_mce/plugins/paste/blank.htm +22 -0
- data/public/javascripts/tiny_mce/plugins/paste/css/blank.css +14 -0
- data/public/javascripts/tiny_mce/plugins/paste/css/pasteword.css +3 -0
- data/public/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +382 -0
- data/public/javascripts/tiny_mce/plugins/paste/js/pastetext.js +42 -0
- data/public/javascripts/tiny_mce/plugins/paste/js/pasteword.js +56 -0
- data/public/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/public/javascripts/tiny_mce/plugins/paste/pastetext.htm +34 -0
- data/public/javascripts/tiny_mce/plugins/paste/pasteword.htm +29 -0
- data/public/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
- data/public/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +401 -0
- data/public/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
- data/public/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +103 -0
- data/public/javascripts/tiny_mce/themes/advanced/about.htm +19 -15
- data/public/javascripts/tiny_mce/themes/advanced/anchor.htm +10 -11
- data/public/javascripts/tiny_mce/themes/advanced/charmap.htm +7 -7
- data/public/javascripts/tiny_mce/themes/advanced/color_picker.htm +67 -6
- data/public/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/public/javascripts/tiny_mce/themes/advanced/editor_template_src.js +808 -1352
- data/public/javascripts/tiny_mce/themes/advanced/image.htm +39 -53
- data/public/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/about.js +76 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/anchor.js +30 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/charmap.js +327 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/color_picker.js +245 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/image.js +232 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/link.js +110 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
- data/public/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -82
- data/public/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
- data/public/javascripts/tiny_mce/themes/advanced/link.htm +28 -64
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/content.css +18 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +111 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/{images/anchor_symbol.gif → skins/default/img/items.gif} +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +193 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +18 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +111 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +193 -0
- data/public/javascripts/tiny_mce/themes/advanced/source_editor.htm +9 -9
- data/public/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
- data/public/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
- data/public/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
- data/public/javascripts/tiny_mce/tiny_mce.js +1 -1
- data/public/javascripts/tiny_mce/tiny_mce_popup.js +168 -235
- data/public/javascripts/tiny_mce/tiny_mce_src.js +7173 -5654
- data/public/javascripts/tiny_mce/utils/editable_selects.js +6 -6
- data/public/javascripts/tiny_mce/utils/form_utils.js +23 -40
- data/public/javascripts/tiny_mce/utils/mclayer.js +2 -2
- data/public/javascripts/tiny_mce/utils/mctabs.js +2 -2
- data/public/javascripts/tiny_mce/utils/validate.js +2 -2
- data/public/javascripts/typo.js +11 -18
- data/public/stylesheets/administration.css +449 -232
- data/public/stylesheets/lightbox.css +2 -2
- data/script/spec +4 -0
- data/script/spec_server +102 -0
- data/spec/controllers/accounts_controller_spec.rb +86 -60
- data/spec/controllers/articles_controller_spec.rb +50 -20
- data/spec/controllers/authors_controller_spec.rb +111 -0
- data/spec/controllers/categories_controller_spec.rb +128 -0
- data/spec/controllers/comments_controller_spec.rb +216 -0
- data/spec/controllers/tags_controller_spec.rb +128 -0
- data/spec/fixtures/contents.yml +12 -12
- data/spec/fixtures/feedback.yml +10 -10
- data/spec/helpers/admin_base_helper_spec.rb +3 -3
- data/spec/helpers/comments_helper_spec.rb +11 -0
- data/spec/helpers/content_helper_spec.rb +26 -0
- data/spec/models/amazon_sidebar_spec.rb +11 -11
- data/spec/models/article_spec.rb +17 -0
- data/spec/models/blog_spec.rb +7 -7
- data/spec/models/cache_support_spec.rb +20 -20
- data/spec/models/category_spec.rb +9 -9
- data/spec/models/configuration_spec.rb +41 -41
- data/spec/models/metafragment_spec.rb +8 -8
- data/spec/models/page_spec.rb +38 -30
- data/spec/models/ping_spec.rb +40 -38
- data/spec/models/redirect_spec.rb +5 -5
- data/spec/models/resource_spec.rb +18 -21
- data/spec/models/static_sidebar_spec.rb +5 -5
- data/spec/models/tag_spec.rb +12 -12
- data/spec/models/text_filter_spec.rb +18 -18
- data/spec/models/theme_spec.rb +15 -14
- data/spec/models/trackback_spec.rb +23 -18
- data/spec/models/trigger_spec.rb +6 -6
- data/spec/models/user_spec.rb +40 -40
- data/spec/spec.opts +7 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/views/comments/html_sanitization_spec.rb +118 -0
- data/test/fixtures/blogs.yml +2 -2
- data/test/fixtures/contents.yml +18 -18
- data/test/fixtures/feedback.yml +10 -10
- data/test/fixtures/profiles.yml +16 -0
- data/test/fixtures/users.yml +9 -4
- data/test/functional/accounts_controller_test.rb +6 -6
- data/test/functional/admin/advanced_controller_test.rb +21 -0
- data/test/functional/admin/article_preview_test.rb +1 -1
- data/test/functional/admin/blacklist_controller_test.rb +1 -1
- data/test/functional/admin/categories_controller_test.rb +4 -10
- data/test/functional/admin/comments_controller_test.rb +2 -2
- data/test/functional/admin/content_controller_test.rb +8 -2
- data/test/functional/admin/feedback_controller_test.rb +2 -2
- data/test/functional/admin/general_controller_test.rb +1 -1
- data/test/functional/admin/pages_controller_test.rb +1 -1
- data/test/functional/admin/profiles_controller_test.rb +18 -0
- data/test/functional/admin/resources_controller_test.rb +1 -1
- data/test/functional/admin/textfilters_controller_test.rb +1 -1
- data/test/functional/admin/themes_controller_test.rb +3 -3
- data/test/functional/admin/trackbacks_controller_test.rb +1 -1
- data/test/functional/admin/users_controller_test.rb +2 -2
- data/test/functional/articles_controller_test.rb +56 -358
- data/test/functional/backend_controller_test.rb +23 -9
- data/test/functional/theme_controller_test.rb +8 -8
- data/test/functional/xml_controller_test.rb +20 -180
- data/test/mocks/themes/standard_issue/about.markdown +5 -0
- data/test/mocks/themes/standard_issue/images/img01.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img02.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img03.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img04.jpg +0 -0
- data/test/mocks/themes/standard_issue/images/img05.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img06.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img07.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img08.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img09.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img10.gif +0 -0
- data/test/mocks/themes/standard_issue/images/spacer.gif +0 -0
- data/{themes/azure → test/mocks/themes/standard_issue}/images/spinner.gif +0 -0
- data/test/mocks/themes/standard_issue/layouts/default.html.erb +61 -0
- data/test/mocks/themes/standard_issue/preview.png +0 -0
- data/test/mocks/themes/standard_issue/stylesheets/application.css +461 -0
- data/test/mocks/themes/standard_issue/views/articles/_article.html.erb +32 -0
- data/test/mocks/themes/standard_issue/views/articles/_comment.html.erb +12 -0
- data/test/mocks/themes/standard_issue/views/articles/_comment_form.html.erb +48 -0
- data/{themes/scribbish/views/articles/_comment_list.rhtml → test/mocks/themes/standard_issue/views/articles/_comment_list.html.erb} +0 -0
- data/{themes/scribbish/views/articles/_trackback.rhtml → test/mocks/themes/standard_issue/views/articles/_trackback.html.erb} +0 -0
- data/{themes/scribbish/views/articles/comment_preview.rhtml → test/mocks/themes/standard_issue/views/articles/comment_preview.html.erb} +0 -0
- data/test/mocks/themes/standard_issue/views/articles/index.html.erb +5 -0
- data/test/mocks/themes/standard_issue/views/articles/read.html.erb +42 -0
- data/test/mocks/themes/standard_issue/views/shared/_search.html.erb +17 -0
- data/test/mocks/themes/standard_issue/views/theme/static_view_test.rhtml +1 -0
- data/test/test_helper.rb +4 -2
- data/test/unit/article_closing_test.rb +40 -0
- data/test/unit/article_test.rb +23 -15
- data/test/unit/blog_test.rb +2 -2
- data/test/unit/cache_support_test.rb +1 -1
- data/test/unit/configuration_test.rb +2 -2
- data/test/unit/content_state/feedback_states_test.rb +7 -11
- data/test/unit/ping_pinger_test.rb +30 -0
- data/test/unit/ping_test.rb +4 -2
- data/test/unit/route_cache_test.rb +11 -0
- data/test/unit/sidebar_test.rb +1 -1
- data/test/unit/theme_test.rb +3 -3
- data/test/unit/trackback_test.rb +0 -37
- data/test/unit/typo_deprecated_test.rb +22 -0
- data/test/unit/user_test.rb +1 -1
- data/themes/dirtylicious/about.markdown +3 -0
- data/themes/dirtylicious/images/body.jpg +0 -0
- data/themes/dirtylicious/images/container.jpg +0 -0
- data/themes/dirtylicious/images/gravatar.gif +0 -0
- data/themes/dirtylicious/images/header.jpg +0 -0
- data/themes/dirtylicious/images/li.gif +0 -0
- data/themes/dirtylicious/images/main.gif +0 -0
- data/themes/dirtylicious/images/nav.gif +0 -0
- data/themes/dirtylicious/images/quote.gif +0 -0
- data/themes/dirtylicious/images/spinner.gif +0 -0
- data/themes/dirtylicious/layouts/default.html.erb +60 -0
- data/themes/dirtylicious/preview.png +0 -0
- data/themes/dirtylicious/stylesheets/application.css +327 -0
- data/themes/dirtylicious/views/articles/_article.html.erb +33 -0
- data/themes/dirtylicious/views/articles/_comment.html.erb +14 -0
- data/themes/dirtylicious/views/articles/_comment_form.html.erb +37 -0
- data/themes/dirtylicious/views/articles/_comment_list.html.erb +7 -0
- data/themes/dirtylicious/views/articles/_trackback.html.erb +9 -0
- data/themes/dirtylicious/views/articles/comment_preview.html.erb +10 -0
- data/themes/dirtylicious/views/articles/index.html.erb +5 -0
- data/themes/dirtylicious/views/articles/read.html.erb +42 -0
- data/themes/dirtylicious/views/shared/_search.html.erb +16 -0
- data/themes/scribbish/layouts/default.html.erb +42 -0
- data/themes/scribbish/stylesheets/application.css +1 -1
- data/themes/scribbish/stylesheets/content.css +3 -3
- data/themes/scribbish/views/articles/{_article.rhtml → _article.html.erb} +0 -0
- data/themes/scribbish/views/articles/{_comment.rhtml → _comment.html.erb} +0 -0
- data/themes/scribbish/views/articles/_comment_form.html.erb +53 -0
- data/themes/scribbish/views/articles/_comment_list.html.erb +7 -0
- data/themes/scribbish/views/articles/_trackback.html.erb +9 -0
- data/themes/scribbish/views/articles/comment_preview.html.erb +10 -0
- data/themes/scribbish/views/articles/index.html.erb +5 -0
- data/themes/scribbish/views/articles/{read.rhtml → read.html.erb} +0 -0
- data/themes/scribbish/views/shared/_search.html.erb +16 -0
- data/themes/standard_issue/about.markdown +5 -0
- data/themes/standard_issue/images/img01.gif +0 -0
- data/themes/standard_issue/images/img02.gif +0 -0
- data/themes/standard_issue/images/img03.gif +0 -0
- data/themes/standard_issue/images/img04.jpg +0 -0
- data/themes/standard_issue/images/img05.gif +0 -0
- data/themes/standard_issue/images/img06.gif +0 -0
- data/themes/standard_issue/images/img07.gif +0 -0
- data/themes/standard_issue/images/img08.gif +0 -0
- data/themes/standard_issue/images/img09.gif +0 -0
- data/themes/standard_issue/images/img10.gif +0 -0
- data/themes/standard_issue/images/spacer.gif +0 -0
- data/themes/standard_issue/images/spinner.gif +0 -0
- data/themes/standard_issue/layouts/default.html.erb +59 -0
- data/themes/standard_issue/preview.png +0 -0
- data/themes/standard_issue/stylesheets/application.css +461 -0
- data/themes/standard_issue/views/articles/_article.html.erb +32 -0
- data/themes/standard_issue/views/articles/_comment.html.erb +12 -0
- data/themes/standard_issue/views/articles/_comment_form.html.erb +48 -0
- data/themes/standard_issue/views/articles/_comment_list.html.erb +7 -0
- data/themes/standard_issue/views/articles/_trackback.html.erb +9 -0
- data/themes/standard_issue/views/articles/comment_preview.html.erb +10 -0
- data/themes/standard_issue/views/articles/index.html.erb +5 -0
- data/themes/standard_issue/views/articles/read.html.erb +42 -0
- data/themes/standard_issue/views/shared/_search.html.erb +17 -0
- data/themes/standard_issue/views/theme/static_view_test.html.erb +1 -0
- data/vendor/actionwebservice/CHANGELOG +265 -0
- data/vendor/actionwebservice/MIT-LICENSE +21 -0
- data/vendor/actionwebservice/README +364 -0
- data/vendor/actionwebservice/Rakefile +172 -0
- data/vendor/actionwebservice/TODO +32 -0
- data/vendor/actionwebservice/examples/googlesearch/README +143 -0
- data/vendor/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb +50 -0
- data/vendor/actionwebservice/examples/googlesearch/autoloading/google_search_controller.rb +57 -0
- data/vendor/actionwebservice/examples/googlesearch/delegated/google_search_service.rb +108 -0
- data/vendor/actionwebservice/examples/googlesearch/delegated/search_controller.rb +7 -0
- data/vendor/actionwebservice/examples/googlesearch/direct/google_search_api.rb +50 -0
- data/vendor/actionwebservice/examples/googlesearch/direct/search_controller.rb +58 -0
- data/vendor/actionwebservice/examples/metaWeblog/README +17 -0
- data/vendor/actionwebservice/examples/metaWeblog/apis/blogger_api.rb +60 -0
- data/vendor/actionwebservice/examples/metaWeblog/apis/blogger_service.rb +34 -0
- data/vendor/actionwebservice/examples/metaWeblog/apis/meta_weblog_api.rb +67 -0
- data/vendor/actionwebservice/examples/metaWeblog/apis/meta_weblog_service.rb +48 -0
- data/vendor/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb +16 -0
- data/vendor/actionwebservice/install.rb +30 -0
- data/vendor/actionwebservice/lib/action_web_service.rb +66 -0
- data/vendor/actionwebservice/lib/action_web_service/api.rb +297 -0
- data/vendor/actionwebservice/lib/action_web_service/base.rb +38 -0
- data/vendor/actionwebservice/lib/action_web_service/casting.rb +138 -0
- data/vendor/actionwebservice/lib/action_web_service/client.rb +3 -0
- data/vendor/actionwebservice/lib/action_web_service/client/base.rb +28 -0
- data/vendor/actionwebservice/lib/action_web_service/client/soap_client.rb +113 -0
- data/vendor/actionwebservice/lib/action_web_service/client/xmlrpc_client.rb +58 -0
- data/vendor/actionwebservice/lib/action_web_service/container.rb +3 -0
- data/vendor/actionwebservice/lib/action_web_service/container/action_controller_container.rb +93 -0
- data/vendor/actionwebservice/lib/action_web_service/container/delegated_container.rb +86 -0
- data/vendor/actionwebservice/lib/action_web_service/container/direct_container.rb +69 -0
- data/vendor/actionwebservice/lib/action_web_service/dispatcher.rb +2 -0
- data/vendor/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +207 -0
- data/vendor/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +379 -0
- data/vendor/actionwebservice/lib/action_web_service/invocation.rb +202 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol.rb +4 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol/abstract.rb +112 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol/discovery.rb +37 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb +176 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb +235 -0
- data/vendor/actionwebservice/lib/action_web_service/protocol/xmlrpc_protocol.rb +122 -0
- data/vendor/actionwebservice/lib/action_web_service/scaffolding.rb +283 -0
- data/vendor/actionwebservice/lib/action_web_service/struct.rb +64 -0
- data/vendor/actionwebservice/lib/action_web_service/support/class_inheritable_options.rb +26 -0
- data/vendor/actionwebservice/lib/action_web_service/support/signature_types.rb +226 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/layout.erb +65 -0
- data/vendor/{plugins/sitealizer/lib/app/views/sitealizer/_hits_summary.rhtml → actionwebservice/lib/action_web_service/templates/scaffolds/layout.rhtml} +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/methods.erb +6 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/methods.rhtml +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.erb +29 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/result.erb +30 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/result.rhtml +0 -0
- data/vendor/actionwebservice/lib/action_web_service/test_invoke.rb +110 -0
- data/vendor/actionwebservice/lib/action_web_service/version.rb +9 -0
- data/vendor/actionwebservice/lib/actionwebservice.rb +1 -0
- data/vendor/actionwebservice/setup.rb +1379 -0
- data/vendor/actionwebservice/test/abstract_client.rb +183 -0
- data/vendor/actionwebservice/test/abstract_dispatcher.rb +551 -0
- data/vendor/actionwebservice/test/abstract_unit.rb +45 -0
- data/vendor/actionwebservice/test/api_test.rb +102 -0
- data/vendor/actionwebservice/test/apis/auto_load_api.rb +3 -0
- data/vendor/actionwebservice/test/apis/broken_auto_load_api.rb +2 -0
- data/vendor/actionwebservice/test/base_test.rb +42 -0
- data/vendor/actionwebservice/test/casting_test.rb +86 -0
- data/vendor/actionwebservice/test/client_soap_test.rb +153 -0
- data/vendor/actionwebservice/test/client_xmlrpc_test.rb +152 -0
- data/vendor/actionwebservice/test/container_test.rb +73 -0
- data/vendor/actionwebservice/test/dispatcher_action_controller_soap_test.rb +137 -0
- data/vendor/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb +59 -0
- data/vendor/actionwebservice/test/fixtures/db_definitions/mysql.sql +8 -0
- data/vendor/actionwebservice/test/fixtures/users.yml +12 -0
- data/vendor/actionwebservice/test/gencov +3 -0
- data/vendor/actionwebservice/test/invocation_test.rb +185 -0
- data/vendor/actionwebservice/test/run +6 -0
- data/vendor/actionwebservice/test/scaffolded_controller_test.rb +146 -0
- data/vendor/actionwebservice/test/struct_test.rb +52 -0
- data/vendor/actionwebservice/test/test_invoke_test.rb +112 -0
- data/vendor/memcache-client/lib/memcache.rb +1 -2
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/archives_sidebar/lib/archives_sidebar.rb +14 -5
- data/vendor/plugins/archives_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/category_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/classic_pagination/CHANGELOG +152 -0
- data/vendor/plugins/classic_pagination/README +18 -0
- data/vendor/plugins/classic_pagination/Rakefile +22 -0
- data/vendor/plugins/classic_pagination/init.rb +33 -0
- data/vendor/plugins/classic_pagination/install.rb +1 -0
- data/vendor/plugins/classic_pagination/lib/pagination.rb +405 -0
- data/vendor/plugins/classic_pagination/lib/pagination_helper.rb +135 -0
- data/vendor/plugins/classic_pagination/test/fixtures/companies.yml +24 -0
- data/vendor/plugins/classic_pagination/test/fixtures/company.rb +9 -0
- data/vendor/plugins/classic_pagination/test/fixtures/developer.rb +7 -0
- data/vendor/plugins/classic_pagination/test/fixtures/developers.yml +21 -0
- data/vendor/plugins/classic_pagination/test/fixtures/developers_projects.yml +13 -0
- data/vendor/plugins/classic_pagination/test/fixtures/project.rb +3 -0
- data/vendor/plugins/classic_pagination/test/fixtures/projects.yml +7 -0
- data/vendor/plugins/classic_pagination/test/fixtures/replies.yml +13 -0
- data/vendor/plugins/classic_pagination/test/fixtures/reply.rb +5 -0
- data/vendor/plugins/classic_pagination/test/fixtures/schema.sql +42 -0
- data/vendor/plugins/classic_pagination/test/fixtures/topic.rb +3 -0
- data/vendor/plugins/classic_pagination/test/fixtures/topics.yml +22 -0
- data/vendor/plugins/classic_pagination/test/helper.rb +117 -0
- data/vendor/plugins/classic_pagination/test/pagination_helper_test.rb +38 -0
- data/vendor/plugins/classic_pagination/test/pagination_test.rb +177 -0
- data/vendor/plugins/datestamped_resources/README +4 -0
- data/vendor/plugins/datestamped_resources/Rakefile +22 -0
- data/vendor/plugins/datestamped_resources/init.rb +2 -0
- data/vendor/plugins/datestamped_resources/install.rb +1 -0
- data/vendor/plugins/datestamped_resources/lib/datestamped_resources.rb +202 -0
- data/vendor/plugins/datestamped_resources/tasks/datestamped_resources_tasks.rake +4 -0
- data/vendor/plugins/datestamped_resources/test/datestamped_resources_test.rb +8 -0
- data/vendor/plugins/datestamped_resources/uninstall.rb +1 -0
- data/vendor/plugins/expiring_action_cache/lib/actionparamcache.rb +2 -2
- data/vendor/plugins/localization/lib/localization.rb +1 -1
- data/vendor/plugins/page_sidebar/Rakefile +22 -0
- data/vendor/plugins/page_sidebar/init.rb +5 -0
- data/vendor/plugins/page_sidebar/lib/page_sidebar.rb +10 -0
- data/vendor/plugins/page_sidebar/test/page_sidebar_test.rb +8 -0
- data/vendor/plugins/page_sidebar/views/content.rhtml +12 -0
- data/vendor/plugins/rspec/CHANGES +1021 -0
- data/vendor/plugins/rspec/MIT-LICENSE +20 -0
- data/vendor/plugins/rspec/README +72 -0
- data/vendor/plugins/rspec/Rakefile +277 -0
- data/vendor/plugins/rspec/TODO +2 -0
- data/vendor/plugins/rspec/UPGRADE +31 -0
- data/vendor/plugins/rspec/autotest/discover.rb +6 -0
- data/vendor/plugins/rspec/autotest/rspec.rb +1 -0
- data/vendor/plugins/rspec/bin/spec +3 -0
- data/vendor/plugins/rspec/bin/spec_translator +8 -0
- data/vendor/plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +19 -0
- data/vendor/plugins/rspec/examples/pure/before_and_after_example.rb +40 -0
- data/vendor/plugins/rspec/examples/pure/behave_as_example.rb +45 -0
- data/vendor/plugins/rspec/examples/pure/custom_expectation_matchers.rb +54 -0
- data/vendor/plugins/rspec/examples/pure/custom_formatter.rb +12 -0
- data/vendor/plugins/rspec/examples/pure/dynamic_spec.rb +9 -0
- data/vendor/plugins/rspec/examples/pure/file_accessor.rb +19 -0
- data/vendor/plugins/rspec/examples/pure/file_accessor_spec.rb +38 -0
- data/vendor/plugins/rspec/examples/pure/greeter_spec.rb +31 -0
- data/vendor/plugins/rspec/examples/pure/helper_method_example.rb +14 -0
- data/vendor/plugins/rspec/examples/pure/io_processor.rb +8 -0
- data/vendor/plugins/rspec/examples/pure/io_processor_spec.rb +21 -0
- data/vendor/plugins/rspec/examples/pure/legacy_spec.rb +11 -0
- data/vendor/plugins/rspec/examples/pure/mocking_example.rb +27 -0
- data/vendor/plugins/rspec/examples/pure/multi_threaded_behaviour_runner.rb +28 -0
- data/vendor/plugins/rspec/examples/pure/nested_classes_example.rb +36 -0
- data/vendor/plugins/rspec/examples/pure/partial_mock_example.rb +28 -0
- data/vendor/plugins/rspec/examples/pure/pending_example.rb +20 -0
- data/vendor/plugins/rspec/examples/pure/predicate_example.rb +27 -0
- data/vendor/plugins/rspec/examples/pure/priority.txt +1 -0
- data/vendor/plugins/rspec/examples/pure/shared_example_group_example.rb +81 -0
- data/vendor/plugins/rspec/examples/pure/shared_stack_examples.rb +38 -0
- data/vendor/plugins/rspec/examples/pure/spec_helper.rb +3 -0
- data/vendor/plugins/rspec/examples/pure/stack.rb +36 -0
- data/vendor/plugins/rspec/examples/pure/stack_spec.rb +63 -0
- data/vendor/plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb +67 -0
- data/vendor/plugins/rspec/examples/pure/stubbing_example.rb +69 -0
- data/vendor/plugins/rspec/examples/stories/adder.rb +13 -0
- data/vendor/plugins/rspec/examples/stories/addition +34 -0
- data/vendor/plugins/rspec/examples/stories/addition.rb +9 -0
- data/vendor/plugins/rspec/examples/stories/calculator.rb +65 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/.loadpath +5 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/README.txt +21 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/everything.rb +6 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/examples.rb +3 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +35 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +66 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story +21 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +21 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story +42 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story +42 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanKillACell.story +17 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story +53 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +52 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/helper.rb +6 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +26 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/steps.rb +5 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.rb +3 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.txt +22 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/life.rb +3 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/life/game.rb +23 -0
- data/vendor/plugins/rspec/examples/stories/game-of-life/life/grid.rb +43 -0
- data/vendor/plugins/rspec/examples/stories/helper.rb +9 -0
- data/vendor/plugins/rspec/examples/stories/steps/addition_steps.rb +18 -0
- data/vendor/plugins/rspec/failing_examples/diffing_spec.rb +36 -0
- data/vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
- data/vendor/plugins/rspec/failing_examples/failure_in_setup.rb +10 -0
- data/vendor/plugins/rspec/failing_examples/failure_in_teardown.rb +10 -0
- data/vendor/plugins/rspec/failing_examples/mocking_example.rb +40 -0
- data/vendor/plugins/rspec/failing_examples/mocking_with_flexmock.rb +26 -0
- data/vendor/plugins/rspec/failing_examples/mocking_with_mocha.rb +25 -0
- data/vendor/plugins/rspec/failing_examples/mocking_with_rr.rb +27 -0
- data/vendor/plugins/rspec/failing_examples/partial_mock_example.rb +20 -0
- data/vendor/plugins/rspec/failing_examples/predicate_example.rb +29 -0
- data/vendor/plugins/rspec/failing_examples/raising_example.rb +47 -0
- data/vendor/plugins/rspec/failing_examples/spec_helper.rb +3 -0
- data/vendor/plugins/rspec/failing_examples/syntax_error_example.rb +7 -0
- data/vendor/plugins/rspec/failing_examples/team_spec.rb +44 -0
- data/vendor/plugins/rspec/failing_examples/timeout_behaviour.rb +7 -0
- data/vendor/plugins/rspec/init.rb +9 -0
- data/vendor/plugins/rspec/lib/autotest/discover.rb +3 -0
- data/vendor/plugins/rspec/lib/autotest/rspec.rb +94 -0
- data/vendor/plugins/rspec/lib/spec.rb +37 -0
- data/vendor/plugins/rspec/lib/spec/example.rb +12 -0
- data/vendor/plugins/rspec/lib/spec/example/configuration.rb +144 -0
- data/vendor/plugins/rspec/lib/spec/example/errors.rb +9 -0
- data/vendor/plugins/rspec/lib/spec/example/example_group.rb +16 -0
- data/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb +62 -0
- data/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb +418 -0
- data/vendor/plugins/rspec/lib/spec/example/example_matcher.rb +42 -0
- data/vendor/plugins/rspec/lib/spec/example/example_methods.rb +102 -0
- data/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb +21 -0
- data/vendor/plugins/rspec/lib/spec/example/pending.rb +18 -0
- data/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb +58 -0
- data/vendor/plugins/rspec/lib/spec/expectations.rb +56 -0
- data/vendor/plugins/rspec/lib/spec/expectations/differs/default.rb +66 -0
- data/vendor/plugins/rspec/lib/spec/expectations/errors.rb +12 -0
- data/vendor/plugins/rspec/lib/spec/expectations/extensions.rb +2 -0
- data/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb +71 -0
- data/vendor/plugins/rspec/lib/spec/expectations/extensions/string_and_symbol.rb +17 -0
- data/vendor/plugins/rspec/lib/spec/expectations/handler.rb +52 -0
- data/vendor/plugins/rspec/lib/spec/extensions.rb +3 -0
- data/vendor/plugins/rspec/lib/spec/extensions/class.rb +24 -0
- data/vendor/plugins/rspec/lib/spec/extensions/main.rb +102 -0
- data/vendor/plugins/rspec/lib/spec/extensions/object.rb +10 -0
- data/vendor/plugins/rspec/lib/spec/interop/test.rb +10 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/autorunner.rb +6 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb +61 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/testresult.rb +6 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb +34 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +60 -0
- data/vendor/plugins/rspec/lib/spec/matchers.rb +156 -0
- data/vendor/plugins/rspec/lib/spec/matchers/be.rb +224 -0
- data/vendor/plugins/rspec/lib/spec/matchers/be_close.rb +37 -0
- data/vendor/plugins/rspec/lib/spec/matchers/change.rb +144 -0
- data/vendor/plugins/rspec/lib/spec/matchers/eql.rb +43 -0
- data/vendor/plugins/rspec/lib/spec/matchers/equal.rb +43 -0
- data/vendor/plugins/rspec/lib/spec/matchers/exist.rb +17 -0
- data/vendor/plugins/rspec/lib/spec/matchers/has.rb +44 -0
- data/vendor/plugins/rspec/lib/spec/matchers/have.rb +142 -0
- data/vendor/plugins/rspec/lib/spec/matchers/include.rb +70 -0
- data/vendor/plugins/rspec/lib/spec/matchers/match.rb +41 -0
- data/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb +73 -0
- data/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb +105 -0
- data/vendor/plugins/rspec/lib/spec/matchers/respond_to.rb +45 -0
- data/vendor/plugins/rspec/lib/spec/matchers/satisfy.rb +47 -0
- data/vendor/plugins/rspec/lib/spec/matchers/simple_matcher.rb +29 -0
- data/vendor/plugins/rspec/lib/spec/matchers/throw_symbol.rb +74 -0
- data/vendor/plugins/rspec/lib/spec/mocks.rb +211 -0
- data/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +27 -0
- data/vendor/plugins/rspec/lib/spec/mocks/argument_expectation.rb +183 -0
- data/vendor/plugins/rspec/lib/spec/mocks/error_generator.rb +84 -0
- data/vendor/plugins/rspec/lib/spec/mocks/errors.rb +10 -0
- data/vendor/plugins/rspec/lib/spec/mocks/extensions/object.rb +3 -0
- data/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb +267 -0
- data/vendor/plugins/rspec/lib/spec/mocks/methods.rb +39 -0
- data/vendor/plugins/rspec/lib/spec/mocks/mock.rb +50 -0
- data/vendor/plugins/rspec/lib/spec/mocks/order_group.rb +29 -0
- data/vendor/plugins/rspec/lib/spec/mocks/proxy.rb +170 -0
- data/vendor/plugins/rspec/lib/spec/mocks/space.rb +28 -0
- data/vendor/plugins/rspec/lib/spec/mocks/spec_methods.rb +38 -0
- data/vendor/plugins/rspec/lib/spec/rake/spectask.rb +235 -0
- data/vendor/plugins/rspec/lib/spec/rake/verify_rcov.rb +52 -0
- data/vendor/plugins/rspec/lib/spec/runner.rb +188 -0
- data/vendor/plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +57 -0
- data/vendor/plugins/rspec/lib/spec/runner/class_and_arguments_parser.rb +16 -0
- data/vendor/plugins/rspec/lib/spec/runner/command_line.rb +28 -0
- data/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb +20 -0
- data/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb +59 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +78 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +130 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb +31 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb +20 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +333 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +47 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +30 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb +52 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +39 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +124 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +126 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb +16 -0
- data/vendor/plugins/rspec/lib/spec/runner/heckle_runner.rb +72 -0
- data/vendor/plugins/rspec/lib/spec/runner/heckle_runner_unsupported.rb +10 -0
- data/vendor/plugins/rspec/lib/spec/runner/option_parser.rb +229 -0
- data/vendor/plugins/rspec/lib/spec/runner/options.rb +253 -0
- data/vendor/plugins/rspec/lib/spec/runner/reporter.rb +143 -0
- data/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb +53 -0
- data/vendor/plugins/rspec/lib/spec/story.rb +10 -0
- data/vendor/plugins/rspec/lib/spec/story/extensions.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/story/extensions/main.rb +86 -0
- data/vendor/plugins/rspec/lib/spec/story/given_scenario.rb +14 -0
- data/vendor/plugins/rspec/lib/spec/story/runner.rb +58 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +48 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/scenario_collector.rb +18 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/scenario_runner.rb +46 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/story_mediator.rb +123 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb +227 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb +68 -0
- data/vendor/plugins/rspec/lib/spec/story/scenario.rb +14 -0
- data/vendor/plugins/rspec/lib/spec/story/step.rb +48 -0
- data/vendor/plugins/rspec/lib/spec/story/step_group.rb +89 -0
- data/vendor/plugins/rspec/lib/spec/story/step_mother.rb +37 -0
- data/vendor/plugins/rspec/lib/spec/story/story.rb +42 -0
- data/vendor/plugins/rspec/lib/spec/story/world.rb +124 -0
- data/vendor/plugins/rspec/lib/spec/translator.rb +114 -0
- data/vendor/plugins/rspec/lib/spec/version.rb +22 -0
- data/vendor/plugins/rspec/plugins/mock_frameworks/flexmock.rb +23 -0
- data/vendor/plugins/rspec/plugins/mock_frameworks/mocha.rb +19 -0
- data/vendor/plugins/rspec/plugins/mock_frameworks/rr.rb +21 -0
- data/vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb +18 -0
- data/vendor/plugins/rspec/rake_tasks/examples.rake +7 -0
- data/vendor/plugins/rspec/rake_tasks/examples_with_rcov.rake +9 -0
- data/vendor/plugins/rspec/rake_tasks/failing_examples_with_html.rake +9 -0
- data/vendor/plugins/rspec/rake_tasks/verify_rcov.rake +7 -0
- data/vendor/plugins/rspec/spec.opts +6 -0
- data/vendor/plugins/rspec/spec/README.jruby +14 -0
- data/vendor/plugins/rspec/spec/autotest/discover_spec.rb +19 -0
- data/vendor/plugins/rspec/spec/autotest/rspec_spec.rb +264 -0
- data/vendor/plugins/rspec/spec/autotest_helper.rb +5 -0
- data/vendor/plugins/rspec/spec/rspec_suite.rb +7 -0
- data/vendor/plugins/rspec/spec/ruby_forker.rb +13 -0
- data/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb +282 -0
- data/vendor/plugins/rspec/spec/spec/example/example_group_class_definition_spec.rb +48 -0
- data/vendor/plugins/rspec/spec/spec/example/example_group_factory_spec.rb +129 -0
- data/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb +480 -0
- data/vendor/plugins/rspec/spec/spec/example/example_group_spec.rb +711 -0
- data/vendor/plugins/rspec/spec/spec/example/example_matcher_spec.rb +96 -0
- data/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb +91 -0
- data/vendor/plugins/rspec/spec/spec/example/example_runner_spec.rb +194 -0
- data/vendor/plugins/rspec/spec/spec/example/example_spec.rb +53 -0
- data/vendor/plugins/rspec/spec/spec/example/nested_example_group_spec.rb +59 -0
- data/vendor/plugins/rspec/spec/spec/example/pending_module_spec.rb +31 -0
- data/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +21 -0
- data/vendor/plugins/rspec/spec/spec/example/shared_example_group_spec.rb +265 -0
- data/vendor/plugins/rspec/spec/spec/example/subclassing_example_group_spec.rb +25 -0
- data/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb +109 -0
- data/vendor/plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +107 -0
- data/vendor/plugins/rspec/spec/spec/expectations/fail_with_spec.rb +71 -0
- data/vendor/plugins/rspec/spec/spec/extensions/main_spec.rb +76 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +14 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec_with_test_unit.rb +20 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +9 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec_with_test_unit.rb +34 -0
- data/vendor/plugins/rspec/spec/spec/matchers/be_close_spec.rb +39 -0
- data/vendor/plugins/rspec/spec/spec/matchers/be_spec.rb +224 -0
- data/vendor/plugins/rspec/spec/spec/matchers/change_spec.rb +319 -0
- data/vendor/plugins/rspec/spec/spec/matchers/description_generation_spec.rb +153 -0
- data/vendor/plugins/rspec/spec/spec/matchers/eql_spec.rb +28 -0
- data/vendor/plugins/rspec/spec/spec/matchers/equal_spec.rb +28 -0
- data/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb +57 -0
- data/vendor/plugins/rspec/spec/spec/matchers/handler_spec.rb +129 -0
- data/vendor/plugins/rspec/spec/spec/matchers/has_spec.rb +37 -0
- data/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb +272 -0
- data/vendor/plugins/rspec/spec/spec/matchers/include_spec.rb +45 -0
- data/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb +37 -0
- data/vendor/plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb +78 -0
- data/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb +24 -0
- data/vendor/plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +158 -0
- data/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb +185 -0
- data/vendor/plugins/rspec/spec/spec/matchers/respond_to_spec.rb +54 -0
- data/vendor/plugins/rspec/spec/spec/matchers/satisfy_spec.rb +36 -0
- data/vendor/plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +31 -0
- data/vendor/plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb +54 -0
- data/vendor/plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +29 -0
- data/vendor/plugins/rspec/spec/spec/mocks/argument_expectation_spec.rb +23 -0
- data/vendor/plugins/rspec/spec/spec/mocks/at_least_spec.rb +97 -0
- data/vendor/plugins/rspec/spec/spec/mocks/at_most_spec.rb +93 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_10263.rb +24 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +31 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb +30 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb +19 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_7805_spec.rb +22 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb +26 -0
- data/vendor/plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +115 -0
- data/vendor/plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb +84 -0
- data/vendor/plugins/rspec/spec/spec/mocks/mock_space_spec.rb +54 -0
- data/vendor/plugins/rspec/spec/spec/mocks/mock_spec.rb +475 -0
- data/vendor/plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb +113 -0
- data/vendor/plugins/rspec/spec/spec/mocks/null_object_mock_spec.rb +40 -0
- data/vendor/plugins/rspec/spec/spec/mocks/once_counts_spec.rb +53 -0
- data/vendor/plugins/rspec/spec/spec/mocks/options_hash_spec.rb +45 -0
- data/vendor/plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +106 -0
- data/vendor/plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +66 -0
- data/vendor/plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +154 -0
- data/vendor/plugins/rspec/spec/spec/mocks/precise_counts_spec.rb +52 -0
- data/vendor/plugins/rspec/spec/spec/mocks/record_messages_spec.rb +26 -0
- data/vendor/plugins/rspec/spec/spec/mocks/stub_spec.rb +181 -0
- data/vendor/plugins/rspec/spec/spec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/plugins/rspec/spec/spec/package/bin_spec_spec.rb +14 -0
- data/vendor/plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb +23 -0
- data/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb +146 -0
- data/vendor/plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +92 -0
- data/vendor/plugins/rspec/spec/spec/runner/empty_file.txt +0 -0
- data/vendor/plugins/rspec/spec/spec/runner/examples.txt +2 -0
- data/vendor/plugins/rspec/spec/spec/runner/execution_context_spec.rb +31 -0
- data/vendor/plugins/rspec/spec/spec/runner/failed.txt +3 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +44 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +33 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html +365 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +387 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html +371 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +365 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +66 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb +65 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +127 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/snippet_extractor_spec.rb +18 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +103 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/specdoc_formatter_spec.rb +126 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +56 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +330 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +365 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +365 -0
- data/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +78 -0
- data/vendor/plugins/rspec/spec/spec/runner/heckler_spec.rb +13 -0
- data/vendor/plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +45 -0
- data/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb +377 -0
- data/vendor/plugins/rspec/spec/spec/runner/options_spec.rb +294 -0
- data/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture.rb +7 -0
- data/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture_runner.rb +8 -0
- data/vendor/plugins/rspec/spec/spec/runner/output_one_time_spec.rb +16 -0
- data/vendor/plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +56 -0
- data/vendor/plugins/rspec/spec/spec/runner/reporter_spec.rb +189 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec.opts +2 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb +124 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec_spaced.opts +2 -0
- data/vendor/plugins/rspec/spec/spec/runner_spec.rb +11 -0
- data/vendor/plugins/rspec/spec/spec/spec_classes.rb +126 -0
- data/vendor/plugins/rspec/spec/spec/story/builders.rb +46 -0
- data/vendor/plugins/rspec/spec/spec/story/extensions/main_spec.rb +161 -0
- data/vendor/plugins/rspec/spec/spec/story/extensions_spec.rb +14 -0
- data/vendor/plugins/rspec/spec/spec/story/given_scenario_spec.rb +27 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +92 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb +27 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +142 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +133 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +384 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +256 -0
- data/vendor/plugins/rspec/spec/spec/story/runner_spec.rb +106 -0
- data/vendor/plugins/rspec/spec/spec/story/scenario_spec.rb +20 -0
- data/vendor/plugins/rspec/spec/spec/story/step_group_spec.rb +157 -0
- data/vendor/plugins/rspec/spec/spec/story/step_mother_spec.rb +72 -0
- data/vendor/plugins/rspec/spec/spec/story/step_spec.rb +147 -0
- data/vendor/plugins/rspec/spec/spec/story/story_helper.rb +2 -0
- data/vendor/plugins/rspec/spec/spec/story/story_spec.rb +86 -0
- data/vendor/plugins/rspec/spec/spec/story/world_spec.rb +416 -0
- data/vendor/plugins/rspec/spec/spec/translator_spec.rb +265 -0
- data/vendor/plugins/rspec/spec/spec_helper.rb +103 -0
- data/vendor/plugins/rspec/stories/all.rb +5 -0
- data/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings +45 -0
- data/vendor/plugins/rspec/stories/example_groups/example_group_with_should_methods +17 -0
- data/vendor/plugins/rspec/stories/example_groups/nested_groups +17 -0
- data/vendor/plugins/rspec/stories/example_groups/output +25 -0
- data/vendor/plugins/rspec/stories/example_groups/stories.rb +7 -0
- data/vendor/plugins/rspec/stories/helper.rb +6 -0
- data/vendor/plugins/rspec/stories/interop/examples_and_tests_together +30 -0
- data/vendor/plugins/rspec/stories/interop/stories.rb +7 -0
- data/vendor/plugins/rspec/stories/interop/test_case_with_should_methods +17 -0
- data/vendor/plugins/rspec/stories/pending_stories/README +3 -0
- data/vendor/plugins/rspec/stories/resources/helpers/cmdline.rb +9 -0
- data/vendor/plugins/rspec/stories/resources/helpers/story_helper.rb +16 -0
- data/vendor/plugins/rspec/stories/resources/matchers/smart_match.rb +37 -0
- data/vendor/plugins/rspec/stories/resources/spec/example_group_with_should_methods.rb +12 -0
- data/vendor/plugins/rspec/stories/resources/spec/simple_spec.rb +8 -0
- data/vendor/plugins/rspec/stories/resources/steps/running_rspec.rb +50 -0
- data/vendor/plugins/rspec/stories/resources/stories/failing_story.rb +15 -0
- data/vendor/plugins/rspec/stories/resources/test/spec_and_test_together.rb +57 -0
- data/vendor/plugins/rspec/stories/resources/test/test_case_with_should_methods.rb +30 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/builder.js +136 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/controls.js +972 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/dragdrop.js +976 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/effects.js +1117 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/prototype.js +4140 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/rspec.js +149 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/scriptaculous.js +58 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/slider.js +276 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/sound.js +55 -0
- data/vendor/plugins/rspec/story_server/prototype/javascripts/unittest.js +568 -0
- data/vendor/plugins/rspec/story_server/prototype/lib/server.rb +24 -0
- data/vendor/plugins/rspec/story_server/prototype/stories.html +176 -0
- data/vendor/plugins/rspec/story_server/prototype/stylesheets/rspec.css +136 -0
- data/vendor/plugins/rspec/story_server/prototype/stylesheets/test.css +90 -0
- data/vendor/plugins/rspec_on_rails/MIT-LICENSE +31 -0
- data/vendor/plugins/rspec_on_rails/README +3 -0
- data/vendor/plugins/rspec_on_rails/Rakefile +9 -0
- data/vendor/plugins/rspec_on_rails/generators/helpers/rails_identifier.rb +16 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/CHANGES +1 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/rspec_generator.rb +35 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/all_stories.rb +4 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/previous_failures.txt +0 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/rcov.opts +2 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec +4 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec_server +102 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec.opts +7 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec_helper.rb +39 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/stories_helper.rb +3 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/USAGE +33 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/rspec_controller_generator.rb +50 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb +25 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb +12 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_model/USAGE +18 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_model/rspec_model_generator.rb +30 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_model/templates/model_spec.rb +11 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +169 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +313 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +25 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +22 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/new_erb_spec.rb +26 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/routing_spec.rb +61 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +22 -0
- data/vendor/plugins/rspec_on_rails/init.rb +9 -0
- data/vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +81 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails.rb +51 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example.rb +47 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/assigns_hash_proxy.rb +42 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +245 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/functional_example_group.rb +66 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/helper_example_group.rb +82 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/ivar_proxy.rb +62 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/model_example_group.rb +14 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +60 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +90 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +172 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions.rb +12 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +14 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb +21 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/test_response.rb +11 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_view/base.rb +27 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/active_record/base.rb +30 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/object.rb +5 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/example/configuration.rb +66 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/matchers/have.rb +21 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb +29 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb +130 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +55 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to.rb +113 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +66 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/story_adapter.rb +71 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb +23 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +39 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/autotest/rails_rspec_spec.rb +8 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/assigns_hash_proxy_spec.rb +55 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/configuration_spec.rb +83 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/controller_isolation_spec.rb +43 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +174 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/example_group_factory_spec.rb +112 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +118 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/ivar_proxy_spec.rb +64 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/model_spec_spec.rb +18 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +16 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +249 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_controller_rescue_action_spec.rb +54 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +37 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/extensions/active_record_spec.rb +14 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/assert_select_spec.rb +783 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/description_generation_spec.rb +37 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb +13 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +62 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb +203 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/render_spec.rb +86 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +65 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/sample_spec.rb +7 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/spec_server_spec.rb +89 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb +11 -0
- data/vendor/plugins/rspec_on_rails/spec/rails_suite.rb +7 -0
- data/vendor/plugins/rspec_on_rails/spec/spec_helper.rb +46 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/action_view_base_spec_controller.rb +2 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +48 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/redirect_spec_controller.rb +59 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +22 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/rjs_spec_controller.rb +58 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +10 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/helpers/more_explicit_helper.rb +5 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/helpers/plugin_application_helper.rb +6 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/helpers/view_spec_helper.rb +13 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/_partial.rhtml +0 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml +0 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_template.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.js.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rhtml +0 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/_replacement_partial.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_div.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_page_element.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/insert_html.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_effect.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/no_tags.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial.rhtml +2 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_spacer.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/accessor.rhtml +3 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/entry_form.rhtml +2 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/explicit_helper.rhtml +2 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/foo/show.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/implicit_helper.rhtml +2 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/multiple_helpers.rhtml +3 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial.rhtml +5 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +3 -0
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +1 -0
- data/vendor/plugins/rspec_on_rails/stories/all.rb +6 -0
- data/vendor/plugins/rspec_on_rails/stories/helper.rb +5 -0
- data/vendor/plugins/rspec_on_rails/stories/steps/people.rb +8 -0
- data/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback +15 -0
- data/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback.rb +25 -0
- data/vendor/plugins/rspec_on_rails/tasks/rspec.rake +135 -0
- data/vendor/plugins/tag_sidebar/views/content.rhtml +1 -1
- metadata +1661 -906
- data/CHANGES-4.1 +0 -83
- data/TODO-4.2 +0 -14
- data/app/models/content_state/base.rb +0 -111
- data/app/models/content_state/draft.rb +0 -32
- data/app/models/content_state/factory.rb +0 -13
- data/app/models/content_state/ham.rb +0 -35
- data/app/models/content_state/just_marked_as_ham.rb +0 -22
- data/app/models/content_state/just_marked_as_spam.rb +0 -27
- data/app/models/content_state/just_presumed_ham.rb +0 -38
- data/app/models/content_state/just_published.rb +0 -47
- data/app/models/content_state/just_withdrawn.rb +0 -11
- data/app/models/content_state/new.rb +0 -37
- data/app/models/content_state/presumed_ham.rb +0 -38
- data/app/models/content_state/presumed_spam.rb +0 -35
- data/app/models/content_state/publication_pending.rb +0 -41
- data/app/models/content_state/published.rb +0 -35
- data/app/models/content_state/spam.rb +0 -27
- data/app/models/content_state/unclassified.rb +0 -38
- data/app/models/content_state/withdrawn.rb +0 -27
- data/app/views/accounts/login.rhtml +0 -28
- data/app/views/accounts/logout.rhtml +0 -12
- data/app/views/accounts/signup.rhtml +0 -26
- data/app/views/admin/categories/_categories.rhtml +0 -18
- data/app/views/admin/categories/list.rhtml +0 -18
- data/app/views/admin/categories/show.rhtml +0 -19
- data/app/views/admin/comments/_form.rhtml +0 -19
- data/app/views/admin/comments/list.rhtml +0 -33
- data/app/views/admin/comments/new.rhtml +0 -17
- data/app/views/admin/content/_articles.rhtml +0 -22
- data/app/views/admin/content/_form.rhtml +0 -77
- data/app/views/admin/content/edit.rhtml +0 -10
- data/app/views/admin/content/list.rhtml +0 -20
- data/app/views/admin/content/new.rhtml +0 -8
- data/app/views/admin/content/preview.rhtml +0 -10
- data/app/views/admin/content/show.rhtml +0 -26
- data/app/views/admin/feedback/_item.rhtml +0 -19
- data/app/views/admin/feedback/list.rhtml +0 -51
- data/app/views/admin/general/index.rhtml +0 -281
- data/app/views/admin/pages/_form.rhtml +0 -37
- data/app/views/admin/pages/_pages.rhtml +0 -19
- data/app/views/admin/pages/list.rhtml +0 -14
- data/app/views/admin/pages/new.rhtml +0 -8
- data/app/views/admin/pages/show.rhtml +0 -14
- data/app/views/admin/resources/_resources.rhtml +0 -40
- data/app/views/admin/resources/list.rhtml +0 -12
- data/app/views/admin/resources/new.rhtml +0 -16
- data/app/views/admin/shared/_edit.rhtml +0 -17
- data/app/views/admin/sidebar/index.rhtml +0 -38
- data/app/views/admin/textfilters/_form.rhtml +0 -53
- data/app/views/admin/textfilters/_macros.rhtml +0 -16
- data/app/views/admin/textfilters/_textfilters.rhtml +0 -20
- data/app/views/admin/textfilters/edit.rhtml +0 -14
- data/app/views/admin/textfilters/list.rhtml +0 -17
- data/app/views/admin/textfilters/macro_help.rhtml +0 -3
- data/app/views/admin/textfilters/new.rhtml +0 -17
- data/app/views/admin/themes/index.rhtml +0 -18
- data/app/views/admin/users/_form.rhtml +0 -48
- data/app/views/admin/users/_user.rhtml +0 -9
- data/app/views/admin/users/edit.rhtml +0 -18
- data/app/views/admin/users/list.rhtml +0 -9
- data/app/views/admin/users/new.rhtml +0 -17
- data/app/views/admin/users/show.rhtml +0 -24
- data/app/views/articles/_comment_box.rhtml +0 -44
- data/app/views/articles/index.rhtml +0 -11
- data/app/views/articles/read.rhtml +0 -70
- data/app/views/layouts/administration.rhtml +0 -73
- data/app/views/notification_mailer/article.rhtml +0 -6
- data/app/views/notification_mailer/comment.rhtml +0 -11
- data/app/views/shared/_search.rhtml +0 -10
- data/app/views/xml/atom10_feed.rxml +0 -18
- data/app/views/xml/itunes_feed.rxml +0 -29
- data/app/views/xml/rss20_feed.rxml +0 -18
- data/lib/sanitize.rb +0 -107
- data/public/images/admin/dot-vertical.gif +0 -0
- data/public/images/admin/h-tile.gif +0 -0
- data/public/images/admin/hdr-tile.gif +0 -0
- data/public/images/admin/toggle.gif +0 -0
- data/public/images/bg.jpg +0 -0
- data/public/images/bgcolor.jpg +0 -0
- data/public/images/body_bg.png +0 -0
- data/public/images/branding_bg.png +0 -0
- data/public/images/branding_logo.png +0 -0
- data/public/images/cancel.png +0 -0
- data/public/images/checked.png +0 -0
- data/public/images/content_bg.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/edit.png +0 -0
- data/public/images/footer.jpg +0 -0
- data/public/images/footer.png +0 -0
- data/public/images/global_bg.png +0 -0
- data/public/images/global_logo.png +0 -0
- data/public/images/not-checked copy.gif +0 -0
- data/public/images/not-checked.gif +0 -0
- data/public/images/section_bg.png +0 -0
- data/public/images/sections_bg.png +0 -0
- data/public/images/sections_hilite.png +0 -0
- data/public/images/sections_hover.png +0 -0
- data/public/images/show.png +0 -0
- data/public/images/sitealizer/bar.gif +0 -0
- data/public/images/sitealizer/uv.png +0 -0
- data/public/images/sitealizer/vh.png +0 -0
- data/public/images/spot-header.gif +0 -0
- data/public/images/spot-title.gif +0 -0
- data/public/images/x-ed.gif +0 -0
- data/public/javascripts/tiny_mce/blank.htm +0 -9
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_content.css +0 -58
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_popup.css +0 -331
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_ui.css +0 -97
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/about.htm +0 -31
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/common_buttons.htm +0 -162
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/create_accessible_content.htm +0 -45
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_anchor_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_image_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_link_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_table_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/index.htm +0 -27
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_anchor_button.htm +0 -32
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_image_button.htm +0 -65
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_link_button.htm +0 -33
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_table_button.htm +0 -71
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/style.css +0 -28
- data/public/javascripts/tiny_mce/themes/advanced/images/anchor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/backcolor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_de_se.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_fr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/browse.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bullist.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/button_menu.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/buttons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cancel_button_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/charmap.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cleanup.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/close.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/code.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/color.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/copy.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/custom_1.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cut.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/forecolor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/help.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/hr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/image.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/indent.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/insert_button_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_de_se.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifycenter.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyfull.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyleft.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyright.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/link.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/menu_check.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/newdocument.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/numlist.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/opacity.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/outdent.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/paste.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/redo.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/removeformat.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/separator.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/statusbar_resize.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/strikethrough.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/sub.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/sup.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_fr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/undo.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/unlink.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/visualaid.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_end.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_sel_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_sel_end.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tabs_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/about.js +0 -75
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/anchor.js +0 -74
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/charmap.js +0 -326
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/color_picker.js +0 -108
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/image.js +0 -81
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/link.js +0 -70
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/source_editor.js +0 -60
- data/spec/fixtures/whiteboards.yml +0 -13
- data/spec/models/audioscrobbler_spec.rb +0 -134
- data/spec/models/content_state_spec.rb +0 -1010
- data/spec/models/delegate_to_content_state_spec.rb +0 -126
- data/spec/models/delicious_spec.rb +0 -101
- data/spec/models/flickr_spec.rb +0 -128
- data/spec/models/page_cache_spec.rb +0 -35
- data/test/mocks/themes/azure/about.markdown +0 -5
- data/test/mocks/themes/azure/layouts/default.rhtml +0 -50
- data/test/mocks/themes/azure/preview.png +0 -0
- data/test/mocks/themes/azure/views/theme/static_view_test.rhtml +0 -1
- data/test/unit/audioscrobbler_test.rb +0 -132
- data/test/unit/content_state/factory_test.rb +0 -88
- data/test/unit/delicious_test.rb +0 -96
- data/test/unit/flickr_test.rb +0 -134
- data/test/unit/fortythree_test.rb +0 -66
- data/test/unit/magnolia_test.rb +0 -87
- data/test/unit/page_cache_test.rb +0 -34
- data/themes/azure/about.markdown +0 -5
- data/themes/azure/images/bg-tile.gif +0 -0
- data/themes/azure/images/bracket.gif +0 -0
- data/themes/azure/images/bullet.gif +0 -0
- data/themes/azure/images/hdr.gif +0 -0
- data/themes/azure/images/q-close.gif +0 -0
- data/themes/azure/images/q-open.gif +0 -0
- data/themes/azure/images/sbar-tile.gif +0 -0
- data/themes/azure/images/xlink.gif +0 -0
- data/themes/azure/layouts/default.rhtml +0 -50
- data/themes/azure/preview.png +0 -0
- data/themes/azure/stylesheets/azure.css +0 -443
- data/themes/azure/stylesheets/print.css +0 -30
- data/themes/azure/views/theme/static_view_test.rhtml +0 -1
- data/themes/scribbish/layouts/default.rhtml +0 -42
- data/themes/scribbish/views/articles/_comment_form.rhtml +0 -52
- data/themes/scribbish/views/articles/_search.rhtml +0 -16
- data/themes/scribbish/views/articles/index.rhtml +0 -5
- data/vendor/plugins/aimpresence_sidebar/Rakefile +0 -22
- data/vendor/plugins/aimpresence_sidebar/init.rb +0 -4
- data/vendor/plugins/aimpresence_sidebar/lib/aimpresence_sidebar.rb +0 -21
- data/vendor/plugins/aimpresence_sidebar/test/aimpresence_sidebar_test.rb +0 -33
- data/vendor/plugins/aimpresence_sidebar/views/content.rhtml +0 -4
- data/vendor/plugins/audioscrobbler_sidebar/MAINTAINERS +0 -26
- data/vendor/plugins/audioscrobbler_sidebar/MIT-LICENSE +0 -21
- data/vendor/plugins/audioscrobbler_sidebar/README +0 -27
- data/vendor/plugins/audioscrobbler_sidebar/Rakefile +0 -22
- data/vendor/plugins/audioscrobbler_sidebar/init.rb +0 -5
- data/vendor/plugins/audioscrobbler_sidebar/lib/audioscrobbler.rb +0 -54
- data/vendor/plugins/audioscrobbler_sidebar/lib/audioscrobbler_sidebar.rb +0 -13
- data/vendor/plugins/audioscrobbler_sidebar/test/audioscrobbler_sidebar_test.rb +0 -8
- data/vendor/plugins/audioscrobbler_sidebar/views/content.rhtml +0 -10
- data/vendor/plugins/backpack_sidebar/MAINTAINERS +0 -26
- data/vendor/plugins/backpack_sidebar/MIT-LICENSE +0 -21
- data/vendor/plugins/backpack_sidebar/README +0 -27
- data/vendor/plugins/backpack_sidebar/Rakefile +0 -22
- data/vendor/plugins/backpack_sidebar/init.rb +0 -5
- data/vendor/plugins/backpack_sidebar/lib/backpack.rb +0 -57
- data/vendor/plugins/backpack_sidebar/lib/backpack_sidebar.rb +0 -20
- data/vendor/plugins/backpack_sidebar/test/backpack_sidebar_test.rb +0 -8
- data/vendor/plugins/backpack_sidebar/views/content.rhtml +0 -12
- data/vendor/plugins/delicious_sidebar/Rakefile +0 -22
- data/vendor/plugins/delicious_sidebar/init.rb +0 -5
- data/vendor/plugins/delicious_sidebar/lib/delicious.rb +0 -57
- data/vendor/plugins/delicious_sidebar/lib/delicious_sidebar.rb +0 -35
- data/vendor/plugins/delicious_sidebar/test/delicious_sidebar_test.rb +0 -8
- data/vendor/plugins/delicious_sidebar/views/content.rhtml +0 -20
- data/vendor/plugins/flickr_sidebar/Rakefile +0 -22
- data/vendor/plugins/flickr_sidebar/init.rb +0 -5
- data/vendor/plugins/flickr_sidebar/lib/flickr.rb +0 -89
- data/vendor/plugins/flickr_sidebar/lib/flickr_sidebar.rb +0 -15
- data/vendor/plugins/flickr_sidebar/test/flickr_sidebar_test.rb +0 -8
- data/vendor/plugins/flickr_sidebar/views/content.rhtml +0 -15
- data/vendor/plugins/fortythree_sidebar/Rakefile +0 -22
- data/vendor/plugins/fortythree_sidebar/init.rb +0 -5
- data/vendor/plugins/fortythree_sidebar/lib/fortythree.rb +0 -62
- data/vendor/plugins/fortythree_sidebar/lib/fortythree_sidebar.rb +0 -13
- data/vendor/plugins/fortythree_sidebar/test/fortythree_sidebar_test.rb +0 -8
- data/vendor/plugins/fortythree_sidebar/views/content.rhtml +0 -8
- data/vendor/plugins/fortythreeplaces_sidebar/Rakefile +0 -22
- data/vendor/plugins/fortythreeplaces_sidebar/init.rb +0 -5
- data/vendor/plugins/fortythreeplaces_sidebar/lib/fortythree.rb +0 -62
- data/vendor/plugins/fortythreeplaces_sidebar/lib/fortythreeplaces_sidebar.rb +0 -13
- data/vendor/plugins/fortythreeplaces_sidebar/test/fortythreeplaces_sidebar_test.rb +0 -8
- data/vendor/plugins/fortythreeplaces_sidebar/views/content.rhtml +0 -8
- data/vendor/plugins/magnolia_sidebar/Rakefile +0 -22
- data/vendor/plugins/magnolia_sidebar/init.rb +0 -5
- data/vendor/plugins/magnolia_sidebar/lib/magnolia_aggregation.rb +0 -81
- data/vendor/plugins/magnolia_sidebar/lib/magnolia_sidebar.rb +0 -16
- data/vendor/plugins/magnolia_sidebar/test/magnolia_sidebar_test.rb +0 -8
- data/vendor/plugins/magnolia_sidebar/views/content.rhtml +0 -12
- data/vendor/plugins/recent_comments_sidebar/Rakefile +0 -22
- data/vendor/plugins/recent_comments_sidebar/init.rb +0 -5
- data/vendor/plugins/recent_comments_sidebar/lib/recent_comments_sidebar.rb +0 -16
- data/vendor/plugins/recent_comments_sidebar/test/recent_comments_sidebar_test.rb +0 -8
- data/vendor/plugins/recent_comments_sidebar/views/content.rhtml +0 -12
- data/vendor/plugins/sitealizer/CHANGELOG +0 -6
- data/vendor/plugins/sitealizer/LICENSE +0 -22
- data/vendor/plugins/sitealizer/README +0 -82
- data/vendor/plugins/sitealizer/Rakefile +0 -22
- data/vendor/plugins/sitealizer/init.rb +0 -24
- data/vendor/plugins/sitealizer/install.rb +0 -22
- data/vendor/plugins/sitealizer/lib/app/assets/images/bar.gif +0 -0
- data/vendor/plugins/sitealizer/lib/app/assets/images/uv.png +0 -0
- data/vendor/plugins/sitealizer/lib/app/assets/images/vh.png +0 -0
- data/vendor/plugins/sitealizer/lib/app/controllers/sitealizer_controller.rb +0 -118
- data/vendor/plugins/sitealizer/lib/app/models/site_tracker.rb +0 -145
- data/vendor/plugins/sitealizer/lib/app/views/layouts/sitealizer.rhtml +0 -66
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_browsers.rhtml +0 -23
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_daily_stats.rhtml +0 -67
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_hosts.rhtml +0 -21
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_keywords.rhtml +0 -19
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_languages.rhtml +0 -21
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_main_frame.rhtml +0 -84
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_monthly_hits.rhtml +0 -67
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_page_urls.rhtml +0 -20
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_platforms.rhtml +0 -21
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_referers.rhtml +0 -22
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml +0 -19
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_search_engines.rhtml +0 -19
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/hourly_stats.rhtml +0 -39
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/index.rhtml +0 -8
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/login.rhtml +0 -20
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/menu.rhtml +0 -74
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/referrer_stats.rhtml +0 -20
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/search_stats.rhtml +0 -25
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/summary.rhtml +0 -22
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/visitor_info.rhtml +0 -30
- data/vendor/plugins/sitealizer/lib/config.yml +0 -18
- data/vendor/plugins/sitealizer/lib/sitealizer.rb +0 -78
- data/vendor/plugins/sitealizer/lib/sitealizer/parser.rb +0 -347
- data/vendor/plugins/sitealizer/lib/tasks/sitealizer.rake +0 -36
- data/vendor/plugins/sitealizer/test/fixtures/sitealizer.yml +0 -89
- data/vendor/plugins/sitealizer/test/sitealizer_controller_test.rb +0 -208
- data/vendor/plugins/sitealizer/test/sitealizer_parser_test.rb +0 -169
- data/vendor/plugins/sitealizer/test/test_helper.rb +0 -7
- data/vendor/plugins/tada_sidebar/MAINTAINERS +0 -26
- data/vendor/plugins/tada_sidebar/MIT-LICENSE +0 -21
- data/vendor/plugins/tada_sidebar/README +0 -27
- data/vendor/plugins/tada_sidebar/Rakefile +0 -22
- data/vendor/plugins/tada_sidebar/init.rb +0 -5
- data/vendor/plugins/tada_sidebar/lib/tada.rb +0 -75
- data/vendor/plugins/tada_sidebar/lib/tada_sidebar.rb +0 -16
- data/vendor/plugins/tada_sidebar/test/tada_sidebar_test.rb +0 -8
- data/vendor/plugins/tada_sidebar/views/content.rhtml +0 -12
- data/vendor/plugins/technorati_sidebar/Rakefile +0 -22
- data/vendor/plugins/technorati_sidebar/init.rb +0 -5
- data/vendor/plugins/technorati_sidebar/lib/technorati.rb +0 -51
- data/vendor/plugins/technorati_sidebar/lib/technorati_sidebar.rb +0 -16
- data/vendor/plugins/technorati_sidebar/test/technorati_sidebar_test.rb +0 -8
- data/vendor/plugins/technorati_sidebar/views/content.rhtml +0 -8
- data/vendor/plugins/upcoming_sidebar/Rakefile +0 -22
- data/vendor/plugins/upcoming_sidebar/init.rb +0 -5
- data/vendor/plugins/upcoming_sidebar/lib/upcoming.rb +0 -74
- data/vendor/plugins/upcoming_sidebar/lib/upcoming_sidebar.rb +0 -15
- data/vendor/plugins/upcoming_sidebar/test/upcoming_sidebar_test.rb +0 -8
- data/vendor/plugins/upcoming_sidebar/views/content.rhtml +0 -8
- data/vendor/plugins/xbox_sidebar/MAINTAINERS +0 -26
- data/vendor/plugins/xbox_sidebar/MIT-LICENSE +0 -21
- data/vendor/plugins/xbox_sidebar/README +0 -27
- data/vendor/plugins/xbox_sidebar/Rakefile +0 -22
- data/vendor/plugins/xbox_sidebar/init.rb +0 -5
- data/vendor/plugins/xbox_sidebar/lib/xbox_sidebar.rb +0 -6
- data/vendor/plugins/xbox_sidebar/test/xbox_sidebar_test.rb +0 -8
- data/vendor/plugins/xbox_sidebar/views/content.rhtml +0 -2
@@ -0,0 +1,32 @@
|
|
1
|
+
<div class="atomentry" id="article-<%= article.id %>">
|
2
|
+
<h2 class="title"><%= (controller.action_name.include? 'permalink') ? article.title : link_to_permalink(article,article.title) %></h2>
|
3
|
+
<div class="content">
|
4
|
+
<%= article.html(:body) %>
|
5
|
+
|
6
|
+
<% if article.extended? -%>
|
7
|
+
<div class="extended">
|
8
|
+
<% if controller.action_name == 'index' -%>
|
9
|
+
<p><%= link_to_permalink article,"Continue reading..." %></p>
|
10
|
+
<% else -%>
|
11
|
+
<%= article.html(:extended) %>
|
12
|
+
<% end -%>
|
13
|
+
</div>
|
14
|
+
<% end -%>
|
15
|
+
</div>
|
16
|
+
<div class="meta">
|
17
|
+
<% if controller.action_name == 'show' %>
|
18
|
+
<p><small>This entry was posted on <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> <%= content_tag(:span, "and " + category_links(@article), :class => 'categories') unless @article.categories.empty? %>. You can follow any any response to this entry through the <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'atom', :id => @article %>">Atom feed</a>. <%= "You can leave a " + link_to_permalink(article, 'comments', 'comments') << ',' if article.allow_comments? %> <%= "Or a " + link_to_permalink(article, 'trackback', 'trackbacks') << ' from your own site' if article.allow_pings? %>.</small><br />
|
19
|
+
<small><%= tag_links(@article) unless @article.tags.empty? %></small></p>
|
20
|
+
<% else %>
|
21
|
+
<p class="author">
|
22
|
+
Posted by <cite><%= author_link(article) %></cite>
|
23
|
+
<abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr>
|
24
|
+
</p>
|
25
|
+
<p class="links">
|
26
|
+
<%= link_to_permalink(article, _("Read full article"), nil, 'more') if controller.action_name != 'permalink' %>
|
27
|
+
<%= link_to_permalink(article,pluralize(article.published_comments.size, 'comment'),'comments', 'comments') %>
|
28
|
+
</p>
|
29
|
+
<% end %>
|
30
|
+
<br style="clear:both;" />
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<li class="comment" id="comment-<%= comment.id %>">
|
2
|
+
<div class="author">
|
3
|
+
<%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %>
|
4
|
+
<cite><%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %></cite>
|
5
|
+
<abbr title="<%= comment.created_at.xmlschema %>"><%= distance_of_time_in_words comment.article.published_at, comment.created_at %> later:</abbr>
|
6
|
+
</div>
|
7
|
+
<%= comment.html %>
|
8
|
+
<% unless comment.published -%>
|
9
|
+
<div class="spamwarning"><%= _("This comment has been flagged for moderator approval.") %></div>
|
10
|
+
<% end -%>
|
11
|
+
</li>
|
12
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<% form_remote_tag :url => comments_path(@article),
|
2
|
+
:position => :bottom,
|
3
|
+
:update => {:success => 'commentList'},
|
4
|
+
:loading => "loading()",
|
5
|
+
:complete => "complete(request)",
|
6
|
+
:failure => "failure(request)",
|
7
|
+
:html => {:id => 'commentform', :class => 'comments' } \
|
8
|
+
do %>
|
9
|
+
|
10
|
+
<div id="preview" style="display:none"></div>
|
11
|
+
|
12
|
+
<div id="respond" class="post">
|
13
|
+
<h2 class="title">Leave a comment</h2>
|
14
|
+
|
15
|
+
<p>
|
16
|
+
<%= text_field "comment", "author" %>
|
17
|
+
<label for="comment_author">Name <small>(required)</small></label>
|
18
|
+
</p>
|
19
|
+
|
20
|
+
<p>
|
21
|
+
<%= text_field "comment", "email" %>
|
22
|
+
<label for="comment_email">Email <%= content_tag('small', "(#{link_to('gravatar', 'http://gravatar.com')} enabled)") if this_blog.use_gravatar %> <small>(never displayed)</small></label>
|
23
|
+
</p>
|
24
|
+
<p><%= text_field "comment", "url" %>
|
25
|
+
<label>Website</label>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<label>
|
30
|
+
Comments:
|
31
|
+
<%= content_tag('small', link_to("Textile enabled", "http://hobix.com/textile/")) if this_blog.comment_text_filter.include? 'textile' %>
|
32
|
+
<%= content_tag('small', link_to("Markdown enabled", "http://daringfireball.net/projects/markdown/")) if this_blog.comment_text_filter.include? 'markdown' %>
|
33
|
+
<br />
|
34
|
+
<%= text_area 'comment', 'body', :rows => 10 %>
|
35
|
+
</label>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
<%= submit_to_remote('preview', 'Preview!',
|
40
|
+
:update => 'preview',
|
41
|
+
:complete => "Element.show('preview')",
|
42
|
+
:url => preview_new_comment_path(@article),
|
43
|
+
:html => {:class => 'submit'}) %>
|
44
|
+
<%= submit_tag 'Submit', :id => 'form-submit-button', :class => 'submit', :onclick => "$('commentform').onsubmit();this.disabled=true;Element.hide('preview');return false;" %>
|
45
|
+
<%= image_tag '/images/theme/spinner.gif', :id => 'comment_loading', :style => 'display:none' %>
|
46
|
+
</p>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<%= render :partial => 'articles/article', :collection => @articles %>
|
2
|
+
|
3
|
+
<% unless @pages.item_count <= this_blog.limit_article_display -%>
|
4
|
+
<p class="pagination">Older posts: <%= pagination_links @pages, :params => { :action => @controller.action_name } %></p>
|
5
|
+
<% end -%>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!--
|
2
|
+
<rdf:RDF
|
3
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
4
|
+
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
|
5
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
6
|
+
<rdf:Description
|
7
|
+
rdf:about=""
|
8
|
+
trackback:ping="<%= @article.trackback_url %>"
|
9
|
+
dc:title="<%=h @article.title.gsub(/-+/, '-') %>"
|
10
|
+
dc:identifier="<%= @article.permalink_url %>"
|
11
|
+
dc:description="<%=h (@article.html.strip_html[0..255]).gsub(/-+/, '-') %>"
|
12
|
+
dc:creator="<%= h @article.author %>"
|
13
|
+
dc:date="<%= @article.updated_at.xmlschema %>" />
|
14
|
+
</rdf:RDF>
|
15
|
+
-->
|
16
|
+
|
17
|
+
<%= render :partial => 'article', :object => @article %>
|
18
|
+
|
19
|
+
<% if @article.allow_pings? -%>
|
20
|
+
<h2><a name="trackbacks">Trackbacks</a></h2>
|
21
|
+
<p>
|
22
|
+
Use the following link to trackback from your own site:<br />
|
23
|
+
<%= @article.trackback_url %>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
<% unless @article.published_trackbacks.blank? -%>
|
27
|
+
<ol id="trackbacks" class="trackbacks">
|
28
|
+
<%= render(:partial => "trackback", :collection => @article.published_trackbacks) %>
|
29
|
+
</ol>
|
30
|
+
<% end -%>
|
31
|
+
<% end -%>
|
32
|
+
|
33
|
+
<% if @article.allow_comments? or @article.published_comments.size > 0 -%>
|
34
|
+
<h2><a name="comments">Comments</a></h2>
|
35
|
+
<p><a href="#commentform">Leave a response</a></p>
|
36
|
+
|
37
|
+
<div id="comments_div">
|
38
|
+
<%= render :partial => "comment_list" %>
|
39
|
+
</div>
|
40
|
+
<% end -%>
|
41
|
+
|
42
|
+
<%= render :partial => 'comment_form' if @article.allow_comments? %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div id="search" class="search">
|
2
|
+
<% form_tag({ :controller => 'articles', :action => 'search' },
|
3
|
+
{ :method => 'get', :id => 'sform' }) do -%>
|
4
|
+
<h3>Search</h3>
|
5
|
+
<p><input type="text" id="q" name="q" value="" /></p>
|
6
|
+
<% end -%>
|
7
|
+
|
8
|
+
<div id="loading" class="loading" style="display:none;">Searching...</div>
|
9
|
+
<div id="results" class="results"></div>
|
10
|
+
<%= observe_field 'q',
|
11
|
+
:url => { :controller => 'live', :action => 'search' },
|
12
|
+
:frequency => 1,
|
13
|
+
:loading => "Element.show('loading')",
|
14
|
+
:complete => "Element.hide('loading')",
|
15
|
+
:update => 'results',
|
16
|
+
:with => "'q=' + escape($F('q'))" %>
|
17
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<!-- Static View Test from standard issue -->
|
data/test/test_helper.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
2
|
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
3
3
|
require 'test_help'
|
4
|
+
require 'action_web_service/test_invoke'
|
5
|
+
require 'flexmock'
|
4
6
|
|
5
7
|
$TESTING = true
|
6
8
|
|
7
9
|
User.salt = 'change-me'
|
8
10
|
|
9
11
|
class Test::Unit::TestCase
|
10
|
-
self.use_transactional_fixtures =
|
12
|
+
self.use_transactional_fixtures = true
|
11
13
|
|
12
14
|
# Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david)
|
13
15
|
self.use_instantiated_fixtures = false
|
@@ -21,7 +23,7 @@ class Test::Unit::TestCase
|
|
21
23
|
__send__(@method_name)
|
22
24
|
rescue Test::Unit::AssertionFailedError => e
|
23
25
|
add_failure(e.message, e.backtrace)
|
24
|
-
|
26
|
+
rescue StandardError, ScriptError
|
25
27
|
add_error($!)
|
26
28
|
ensure
|
27
29
|
begin
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper.rb'
|
2
|
+
|
3
|
+
class CommentClosingTest < Test::Unit::TestCase
|
4
|
+
fixtures :blogs
|
5
|
+
|
6
|
+
def an_article(options = {})
|
7
|
+
@blog.articles.create(options.reverse_merge(:user_id => 1, :body => 'Foo', :title => 'Bar'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def setup
|
11
|
+
@blog = blogs(:default)
|
12
|
+
@blog.sp_article_auto_close = 0
|
13
|
+
@blog.default_allow_comments = true
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_new_article_should_be_open_if_auto_close_is_zero
|
17
|
+
art = an_article
|
18
|
+
art.created_at = Time.now
|
19
|
+
assert !art.comments_closed?
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_old_article_should_be_open_if_auto_close_is_zero
|
23
|
+
art = an_article(:created_at => Time.now - 1000.days)
|
24
|
+
assert !art.comments_closed?
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_new_article_should_be_open_if_auto_close_is_thirty
|
28
|
+
@blog.sp_article_auto_close = 30
|
29
|
+
art = an_article
|
30
|
+
assert !art.comments_closed?
|
31
|
+
art.created_at = Time.now - 29.days
|
32
|
+
assert !art.comments_closed?
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_old_article_should_be_closed_if_auto_close_is_thirty
|
36
|
+
@blog.sp_article_auto_close = 30
|
37
|
+
art = an_article(:created_at => Time.now - 31.days)
|
38
|
+
assert art.comments_closed?
|
39
|
+
end
|
40
|
+
end
|
data/test/unit/article_test.rb
CHANGED
@@ -3,7 +3,8 @@ require File.dirname(__FILE__) + '/../test_helper'
|
|
3
3
|
require 'http_mock'
|
4
4
|
|
5
5
|
class ArticleTest < Test::Unit::TestCase
|
6
|
-
fixtures :blogs, :contents, :articles_tags, :tags, :resources, :categories,
|
6
|
+
fixtures :blogs, :contents, :articles_tags, :tags, :resources, :categories,
|
7
|
+
:categorizations, :users, :notifications, :text_filters, :triggers, :profiles
|
7
8
|
|
8
9
|
def setup
|
9
10
|
@articles = []
|
@@ -72,7 +73,9 @@ class ArticleTest < Test::Unit::TestCase
|
|
72
73
|
def test_permalink_with_title
|
73
74
|
assert_equal( contents(:article3),
|
74
75
|
this_blog.articles.find_by_permalink(2004, 06, 01, "article-3") )
|
75
|
-
|
76
|
+
assert_raises(ActiveRecord::RecordNotFound) do
|
77
|
+
this_blog.articles.find_by_permalink(2005, 06, 01, "article-5")
|
78
|
+
end
|
76
79
|
end
|
77
80
|
|
78
81
|
def test_strip_title
|
@@ -175,16 +178,17 @@ class ArticleTest < Test::Unit::TestCase
|
|
175
178
|
art = this_blog.articles.build(:title => 'title',
|
176
179
|
:body => 'body',
|
177
180
|
:published => true)
|
178
|
-
assert art.
|
181
|
+
assert art.just_changed_published_status?
|
179
182
|
assert art.save
|
180
|
-
|
181
|
-
|
183
|
+
|
184
|
+
art = Article.find(art.id)
|
185
|
+
assert !art.just_changed_published_status?
|
182
186
|
|
183
187
|
art = Article.create!(:title => 'title2',
|
184
188
|
:body => 'body',
|
185
189
|
:published => false)
|
186
190
|
|
187
|
-
assert ! art.
|
191
|
+
assert ! art.just_changed_published_status?
|
188
192
|
end
|
189
193
|
|
190
194
|
def test_future_publishing
|
@@ -224,19 +228,23 @@ class ArticleTest < Test::Unit::TestCase
|
|
224
228
|
@articles = Category.find_by_permalink('personal').published_articles
|
225
229
|
assert_results_are :article1, :article2, :article3
|
226
230
|
|
227
|
-
@articles = Category.find_by_permalink('foobar').published_articles
|
228
|
-
assert @articles.empty?
|
229
|
-
|
230
231
|
@articles = Category.find_by_permalink('software').published_articles
|
231
232
|
assert_results_are :article1
|
232
233
|
end
|
233
234
|
|
235
|
+
def test_find_published_by_nonexistent_category_raises_exception
|
236
|
+
assert_raises ActiveRecord::RecordNotFound do
|
237
|
+
Category.find_by_permalink('does-not-exist').published_articles
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
234
241
|
def test_destroy_file_upload_associations
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
242
|
+
a = contents(:article1)
|
243
|
+
assert_equal 2, a.resources.size
|
244
|
+
a.resources << resources(:resource3)
|
245
|
+
assert_equal 3, a.resources.size
|
246
|
+
a.destroy
|
247
|
+
assert_equal 0, Resource.find(:all, :conditions => "article_id = #{a.id}").size
|
240
248
|
end
|
241
249
|
|
242
250
|
def test_notifications
|
@@ -268,7 +276,7 @@ class ArticleTest < Test::Unit::TestCase
|
|
268
276
|
mar2.created_at = mar2.published_at = "2004-03-02"
|
269
277
|
|
270
278
|
[feb28, mar1, mar2].each do |x|
|
271
|
-
x.state =
|
279
|
+
x.state = :published
|
272
280
|
x.save
|
273
281
|
end
|
274
282
|
|
data/test/unit/blog_test.rb
CHANGED
@@ -32,11 +32,11 @@ class BlogTest < Test::Unit::TestCase
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def test_current_theme_path
|
35
|
-
assert_equal Theme.themes_root + "/
|
35
|
+
assert_equal Theme.themes_root + "/standard_issue", @blog.current_theme.path
|
36
36
|
end
|
37
37
|
|
38
38
|
def test_current_theme
|
39
|
-
assert_equal "
|
39
|
+
assert_equal "standard_issue", @blog.current_theme.name
|
40
40
|
end
|
41
41
|
|
42
42
|
def test_url_for
|
@@ -5,19 +5,19 @@ class FeedbackStatesTest < Test::Unit::TestCase
|
|
5
5
|
:categories, :categorizations, :users, :notifications, :text_filters
|
6
6
|
|
7
7
|
def setup
|
8
|
-
@comment = Article.find(
|
8
|
+
@comment = Article.find(1).comments.build(:author => 'Piers',
|
9
9
|
:body => 'Body')
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_ham_all_the_way
|
13
|
-
|
13
|
+
assert @comment.unclassified?
|
14
14
|
assert @comment.published?
|
15
15
|
assert @comment.just_published?
|
16
16
|
assert @comment.just_changed_published_status?
|
17
17
|
assert @comment.save
|
18
18
|
assert @comment.just_changed_published_status?
|
19
19
|
assert @comment.just_published?
|
20
|
-
@comment.
|
20
|
+
@comment = Comment.find(@comment.id)
|
21
21
|
assert ! @comment.just_changed_published_status?
|
22
22
|
assert ! @comment.just_published?
|
23
23
|
@comment.confirm_classification
|
@@ -32,7 +32,7 @@ class FeedbackStatesTest < Test::Unit::TestCase
|
|
32
32
|
:spam
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
assert @comment.unclassified?
|
36
36
|
assert ! @comment.published?
|
37
37
|
assert ! @comment.just_published?
|
38
38
|
assert ! @comment.just_changed_published_status?
|
@@ -40,7 +40,7 @@ class FeedbackStatesTest < Test::Unit::TestCase
|
|
40
40
|
assert ! @comment.published?
|
41
41
|
assert ! @comment.just_published?
|
42
42
|
assert ! @comment.just_changed_published_status?
|
43
|
-
@comment.
|
43
|
+
@comment = Comment.find(@comment.id)
|
44
44
|
assert ! @comment.just_changed_published_status?
|
45
45
|
assert ! @comment.just_published?
|
46
46
|
@comment.confirm_classification
|
@@ -50,7 +50,7 @@ class FeedbackStatesTest < Test::Unit::TestCase
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def test_presumed_spam_marked_as_ham
|
53
|
-
@comment
|
53
|
+
@comment[:state] = 'presumed_spam'
|
54
54
|
@comment.mark_as_ham
|
55
55
|
assert @comment.published?
|
56
56
|
assert @comment.just_published?
|
@@ -58,14 +58,10 @@ class FeedbackStatesTest < Test::Unit::TestCase
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def test_presumed_ham_marked_as_spam
|
61
|
-
@comment
|
61
|
+
@comment[:state] = 'presumed_ham'
|
62
62
|
@comment.mark_as_spam
|
63
63
|
assert ! @comment.published?
|
64
64
|
assert ! @comment.just_published?
|
65
65
|
assert @comment.just_changed_published_status?
|
66
66
|
end
|
67
|
-
|
68
|
-
def assert_state(state)
|
69
|
-
assert_instance_of state, @comment.state
|
70
|
-
end
|
71
67
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class PingPingerTest < Test::Unit::TestCase
|
4
|
+
include FlexMock::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
# avoid mocking constructor until we need it for something
|
8
|
+
@pinger = Ping::Pinger.allocate
|
9
|
+
class <<@pinger
|
10
|
+
attr_writer :response
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_pingback_url_nil
|
15
|
+
@pinger.response = flexmock(:body => '', :[] => nil)
|
16
|
+
assert_nil @pinger.pingback_url
|
17
|
+
end
|
18
|
+
|
19
|
+
# TODO: why do we assume that we can XML attribute order?
|
20
|
+
def test_pingback_url_from_body
|
21
|
+
@pinger.response = flexmock(:body => '<link rel="pingback" href="foo" />', :[] => nil)
|
22
|
+
assert_equal 'foo', @pinger.pingback_url
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_pingback_url
|
26
|
+
@pinger.response = flexmock(:body => '', :[] => :x_pingback)
|
27
|
+
assert_equal :x_pingback, @pinger.pingback_url
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|