fat_free_crm 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +5 -13
- data/.travis.yml +3 -3
- data/Gemfile +5 -2
- data/Gemfile.lock +137 -119
- data/MIT-LICENSE +1 -1
- data/README.md +5 -3
- data/app/assets/javascripts/admin/fields.js.coffee +31 -8
- data/app/assets/javascripts/application.js.erb +6 -10
- data/app/assets/javascripts/crm.js.coffee +426 -0
- data/app/assets/javascripts/crm_chosen.js.coffee +19 -38
- data/app/assets/javascripts/crm_classes.js.coffee +215 -0
- data/app/assets/javascripts/crm_comments.js.coffee +20 -58
- data/app/assets/javascripts/crm_loginout.js.coffee +27 -0
- data/app/assets/javascripts/crm_select2.js.coffee +29 -0
- data/app/assets/javascripts/crm_sortable.js.coffee +32 -0
- data/app/assets/javascripts/crm_tags.js.coffee +22 -0
- data/app/assets/javascripts/crm_textarea_autocomplete.js.coffee +33 -0
- data/app/assets/javascripts/datepicker.js.coffee +2 -2
- data/app/assets/javascripts/format_buttons.js.coffee +23 -24
- data/app/assets/javascripts/lists.js.coffee +45 -76
- data/app/assets/javascripts/pagination.js.coffee +16 -0
- data/app/assets/javascripts/search.js.coffee +6 -22
- data/app/assets/javascripts/timeago.js.coffee +21 -0
- data/app/assets/stylesheets/application.css.erb +0 -1
- data/app/assets/stylesheets/common.scss +36 -29
- data/app/assets/stylesheets/lists.css.scss +17 -3
- data/app/controllers/admin/groups_controller.rb +2 -1
- data/app/controllers/application_controller.rb +5 -5
- data/app/controllers/entities/accounts_controller.rb +1 -1
- data/app/controllers/entities/campaigns_controller.rb +1 -1
- data/app/controllers/entities/contacts_controller.rb +1 -1
- data/app/controllers/entities/leads_controller.rb +1 -1
- data/app/controllers/entities/opportunities_controller.rb +1 -1
- data/app/controllers/home_controller.rb +10 -7
- data/app/controllers/tasks_controller.rb +15 -0
- data/app/controllers/users_controller.rb +6 -4
- data/app/helpers/accounts_helper.rb +8 -5
- data/app/helpers/application_helper.rb +53 -39
- data/app/helpers/campaigns_helper.rb +1 -0
- data/app/helpers/leads_helper.rb +3 -3
- data/app/helpers/opportunities_helper.rb +15 -0
- data/app/helpers/remote_link_pagination_helper.rb +8 -0
- data/app/helpers/tags_helper.rb +2 -2
- data/app/helpers/tasks_helper.rb +22 -15
- data/app/helpers/users_helper.rb +3 -2
- data/app/mailers/user_mailer.rb +9 -3
- data/app/models/entities/account_contact.rb +1 -1
- data/app/models/fields/custom_field.rb +1 -1
- data/app/models/list.rb +1 -0
- data/app/models/observers/entity_observer.rb +10 -1
- data/app/models/observers/lead_observer.rb +2 -0
- data/app/models/observers/opportunity_observer.rb +2 -0
- data/app/models/observers/task_observer.rb +2 -0
- data/app/models/polymorphic/avatar.rb +2 -0
- data/app/models/polymorphic/comment.rb +0 -1
- data/app/models/polymorphic/task.rb +41 -9
- data/app/models/users/ability.rb +1 -0
- data/app/models/users/group.rb +0 -5
- data/app/models/users/user.rb +0 -7
- data/app/views/accounts/_edit.html.haml +1 -0
- data/app/views/accounts/_index_brief.html.haml +2 -2
- data/app/views/accounts/_index_long.html.haml +2 -2
- data/app/views/accounts/_new.html.haml +1 -0
- data/app/views/accounts/_sidebar_index.html.haml +1 -1
- data/app/views/accounts/_sidebar_show.html.haml +1 -1
- data/app/views/accounts/_top_section.html.haml +1 -1
- data/app/views/accounts/create.js.haml +9 -9
- data/app/views/accounts/destroy.js.haml +2 -2
- data/app/views/accounts/edit.js.haml +5 -5
- data/app/views/accounts/index.js.haml +5 -5
- data/app/views/accounts/new.js.haml +1 -1
- data/app/views/accounts/show.html.haml +1 -1
- data/app/views/accounts/show.js.haml +1 -1
- data/app/views/accounts/update.js.haml +7 -5
- data/app/views/admin/field_groups/_field_group.html.haml +4 -5
- data/app/views/admin/field_groups/confirm.js.haml +2 -2
- data/app/views/admin/field_groups/create.js.haml +6 -12
- data/app/views/admin/field_groups/destroy.js.haml +3 -3
- data/app/views/admin/field_groups/edit.js.haml +1 -1
- data/app/views/admin/field_groups/new.js.haml +1 -1
- data/app/views/admin/field_groups/update.js.haml +2 -2
- data/app/views/admin/fields/_field.html.haml +1 -1
- data/app/views/admin/fields/_sort_by.html.haml +3 -3
- data/app/views/admin/fields/create.js.haml +9 -9
- data/app/views/admin/fields/destroy.js.haml +4 -4
- data/app/views/admin/fields/edit.js.haml +2 -2
- data/app/views/admin/fields/index.html.haml +1 -8
- data/app/views/admin/fields/show.html.haml +1 -1
- data/app/views/admin/fields/update.js.haml +8 -8
- data/app/views/admin/groups/_form.html.haml +1 -3
- data/app/views/admin/groups/create.js.haml +8 -8
- data/app/views/admin/groups/destroy.js.haml +3 -3
- data/app/views/admin/groups/edit.js.haml +3 -3
- data/app/views/admin/groups/index.js.haml +2 -2
- data/app/views/admin/groups/new.js.haml +2 -2
- data/app/views/admin/groups/update.js.haml +5 -5
- data/app/views/admin/tags/confirm.js.haml +2 -2
- data/app/views/admin/tags/create.js.haml +8 -8
- data/app/views/admin/tags/destroy.js.haml +3 -3
- data/app/views/admin/tags/edit.js.haml +4 -4
- data/app/views/admin/tags/new.js.haml +1 -1
- data/app/views/admin/tags/update.js.haml +5 -5
- data/app/views/admin/users/_profile.html.haml +3 -4
- data/app/views/admin/users/confirm.js.haml +2 -2
- data/app/views/admin/users/create.js.haml +8 -8
- data/app/views/admin/users/destroy.js.haml +3 -3
- data/app/views/admin/users/edit.js.haml +4 -4
- data/app/views/admin/users/index.js.haml +2 -2
- data/app/views/admin/users/new.js.haml +2 -2
- data/app/views/admin/users/reactivate.js.haml +2 -2
- data/app/views/admin/users/suspend.js.haml +2 -2
- data/app/views/admin/users/update.js.haml +5 -5
- data/app/views/campaigns/_edit.html.haml +1 -0
- data/app/views/campaigns/_index_brief.html.haml +1 -1
- data/app/views/campaigns/_index_long.html.haml +1 -1
- data/app/views/campaigns/_new.html.haml +1 -0
- data/app/views/campaigns/_sidebar_index.html.haml +1 -1
- data/app/views/campaigns/_sidebar_show.html.haml +1 -1
- data/app/views/campaigns/_status.html.haml +1 -1
- data/app/views/campaigns/_top_section.html.haml +1 -1
- data/app/views/campaigns/create.js.haml +10 -10
- data/app/views/campaigns/destroy.js.haml +2 -2
- data/app/views/campaigns/edit.js.haml +6 -6
- data/app/views/campaigns/index.js.haml +5 -5
- data/app/views/campaigns/new.js.haml +1 -1
- data/app/views/campaigns/show.html.haml +1 -1
- data/app/views/campaigns/show.js.haml +1 -1
- data/app/views/campaigns/update.js.haml +8 -6
- data/app/views/comments/_edit.html.haml +1 -1
- data/app/views/comments/_new.html.haml +1 -1
- data/app/views/comments/create.js.haml +9 -9
- data/app/views/comments/destroy.js.haml +2 -2
- data/app/views/comments/edit.js.haml +3 -3
- data/app/views/comments/update.js.haml +5 -5
- data/app/views/contacts/_contacts.html.haml +1 -1
- data/app/views/contacts/_edit.html.haml +1 -0
- data/app/views/contacts/_index_brief.html.haml +2 -2
- data/app/views/contacts/_index_full.html.haml +2 -2
- data/app/views/contacts/_index_long.html.haml +2 -2
- data/app/views/contacts/_new.html.haml +1 -0
- data/app/views/contacts/_section_general.html.haml +4 -3
- data/app/views/contacts/_sidebar_show.html.haml +1 -1
- data/app/views/contacts/_top_section.html.haml +1 -1
- data/app/views/contacts/create.js.haml +10 -10
- data/app/views/contacts/destroy.js.haml +3 -3
- data/app/views/contacts/edit.js.haml +5 -5
- data/app/views/contacts/index.js.haml +5 -5
- data/app/views/contacts/new.js.haml +1 -1
- data/app/views/contacts/show.html.haml +1 -1
- data/app/views/contacts/show.js.haml +1 -1
- data/app/views/contacts/update.js.haml +8 -6
- data/app/views/emails/destroy.js.haml +2 -2
- data/app/views/entities/_basic_search.html.haml +15 -12
- data/app/views/entities/_permissions.html.haml +6 -11
- data/app/views/entities/attach.js.haml +3 -3
- data/app/views/entities/contacts.js.haml +2 -2
- data/app/views/entities/discard.js.haml +1 -1
- data/app/views/entities/leads.js.haml +2 -2
- data/app/views/entities/opportunities.js.haml +2 -2
- data/app/views/entities/subscription_update.js.haml +1 -1
- data/app/views/entities/versions.js.haml +2 -2
- data/app/views/fields/group.js.erb +1 -1
- data/app/views/home/_account.html.haml +2 -2
- data/app/views/home/_assets_menu.html.haml +3 -3
- data/app/views/home/_duration_menu.html.haml +3 -3
- data/app/views/home/_events_menu.html.haml +3 -3
- data/app/views/home/_opportunity.html.haml +2 -2
- data/app/views/home/_options.html.haml +0 -1
- data/app/views/home/_users_menu.html.haml +3 -3
- data/app/views/home/index.js.haml +4 -4
- data/app/views/home/options.js.haml +1 -1
- data/app/views/layouts/_about.html.haml +3 -3
- data/app/views/layouts/_footer.html.haml +1 -1
- data/app/views/layouts/_header.html.haml +1 -1
- data/app/views/layouts/_jumpbox.html.haml +23 -21
- data/app/views/layouts/_sidebar.html.haml +1 -2
- data/app/views/layouts/admin/application.html.haml +1 -1
- data/app/views/layouts/application.html.haml +3 -3
- data/app/views/leads/_convert.html.haml +1 -11
- data/app/views/leads/_convert_permissions.html.haml +4 -9
- data/app/views/leads/_edit.html.haml +1 -0
- data/app/views/leads/_index_brief.html.haml +1 -1
- data/app/views/leads/_index_long.html.haml +1 -1
- data/app/views/leads/_leads.html.haml +1 -1
- data/app/views/leads/_new.html.haml +1 -0
- data/app/views/leads/_sidebar_index.html.haml +1 -1
- data/app/views/leads/_sidebar_show.html.haml +1 -1
- data/app/views/leads/_top_section.html.haml +1 -1
- data/app/views/leads/convert.js.haml +5 -5
- data/app/views/leads/create.js.haml +9 -9
- data/app/views/leads/destroy.js.haml +2 -2
- data/app/views/leads/edit.js.haml +5 -5
- data/app/views/leads/index.js.haml +5 -5
- data/app/views/leads/new.js.haml +1 -1
- data/app/views/leads/promote.js.haml +7 -7
- data/app/views/leads/reject.js.haml +2 -2
- data/app/views/leads/show.html.haml +1 -1
- data/app/views/leads/show.js.haml +1 -1
- data/app/views/leads/update.js.haml +9 -7
- data/app/views/lists/_lists.html.haml +6 -0
- data/app/views/lists/_sidebar.html.haml +18 -17
- data/app/views/lists/create.js.haml +6 -7
- data/app/views/lists/destroy.js.haml +1 -1
- data/app/views/opportunities/_edit.html.haml +2 -1
- data/app/views/opportunities/_index_brief.html.haml +1 -1
- data/app/views/opportunities/_index_long.html.haml +1 -1
- data/app/views/opportunities/_new.html.haml +2 -1
- data/app/views/opportunities/_opportunities.html.haml +1 -1
- data/app/views/opportunities/_sidebar_index.html.haml +1 -1
- data/app/views/opportunities/_sidebar_show.html.haml +1 -1
- data/app/views/opportunities/_top_section.html.haml +2 -2
- data/app/views/opportunities/contacts.js.haml +2 -2
- data/app/views/opportunities/create.js.haml +10 -10
- data/app/views/opportunities/destroy.js.haml +3 -3
- data/app/views/opportunities/edit.js.haml +5 -5
- data/app/views/opportunities/index.html.haml +1 -1
- data/app/views/opportunities/index.js.haml +5 -5
- data/app/views/opportunities/new.js.haml +1 -1
- data/app/views/opportunities/show.html.haml +1 -1
- data/app/views/opportunities/show.js.haml +1 -1
- data/app/views/opportunities/update.js.haml +8 -6
- data/app/views/shared/_address.html.haml +1 -1
- data/app/views/shared/_inline_styles.html.haml +1 -1
- data/app/views/shared/_naming.html.haml +3 -3
- data/app/views/shared/_paginate.haml +2 -1
- data/app/views/shared/_paginate_with_per_page.html.haml +10 -12
- data/app/views/shared/_search.html.haml +7 -3
- data/app/views/shared/_select_popup.html.haml +9 -11
- data/app/views/shared/_tags.html.haml +5 -4
- data/app/views/tasks/_completed.html.haml +3 -1
- data/app/views/tasks/_selector.html.haml +1 -1
- data/app/views/tasks/_top_section.html.haml +1 -1
- data/app/views/tasks/complete.js.haml +7 -7
- data/app/views/tasks/create.js.haml +17 -17
- data/app/views/tasks/destroy.js.haml +2 -2
- data/app/views/tasks/discard.js.haml +1 -1
- data/app/views/tasks/edit.js.haml +4 -4
- data/app/views/tasks/filter.js.haml +2 -2
- data/app/views/tasks/new.js.haml +1 -1
- data/app/views/tasks/uncomplete.js.haml +12 -0
- data/app/views/tasks/update.js.haml +4 -4
- data/app/views/users/_avatar.html.haml +1 -1
- data/app/views/users/_languages.html.haml +3 -3
- data/app/views/users/_profile.html.haml +1 -1
- data/app/views/users/avatar.js.haml +1 -1
- data/app/views/users/change_password.js.haml +5 -5
- data/app/views/users/edit.js.haml +1 -1
- data/app/views/users/password.js.haml +2 -2
- data/app/views/users/show.html.haml +1 -1
- data/app/views/users/update.js.haml +5 -5
- data/app/views/users/upload_avatar.js.haml +3 -3
- data/app/views/versions/_versions.html.haml +1 -1
- data/config/application.rb +3 -0
- data/config/environments/production.rb +1 -1
- data/config/environments/staging.rb +58 -13
- data/config/initializers/locale.rb +2 -0
- data/config/locales/cz_fat_free_crm.yml +1 -0
- data/config/locales/de_fat_free_crm.yml +1 -0
- data/config/locales/en-GB_fat_free_crm.yml +1 -0
- data/config/locales/en-US_fat_free_crm.yml +2 -0
- data/config/locales/es_fat_free_crm.yml +1 -0
- data/config/locales/fr-CA_fat_free_crm.yml +1 -0
- data/config/locales/fr_fat_free_crm.yml +1 -0
- data/config/locales/it_fat_free_crm.yml +1 -0
- data/config/locales/ja_fat_free_crm.yml +1 -0
- data/config/locales/pl_fat_free_crm.yml +1 -0
- data/config/locales/pt-BR_fat_free_crm.yml +1 -0
- data/config/locales/ru_fat_free_crm.yml +444 -61
- data/config/locales/sv-SE_fat_free_crm.yml +1 -0
- data/config/locales/th_fat_free_crm.yml +1 -0
- data/config/locales/zh-CN_fat_free_crm.yml +1 -0
- data/config/routes.rb +20 -19
- data/config/settings.default.yml +11 -10
- data/fat_free_crm.gemspec +5 -4
- data/lib/{plugins/country_select/lib/country_select.rb → country_select.rb} +0 -0
- data/lib/fat_free_crm.rb +3 -1
- data/lib/fat_free_crm/engine.rb +2 -4
- data/lib/fat_free_crm/gem_dependencies.rb +1 -1
- data/lib/fat_free_crm/gem_ext.rb +0 -2
- data/lib/fat_free_crm/permissions.rb +2 -3
- data/lib/fat_free_crm/version.rb +1 -1
- data/lib/{plugins/gravatar_image_tag/lib/gravatar_image_tag.rb → gravatar_image_tag.rb} +0 -0
- data/lib/tasks/ffcrm/settings.rake +4 -16
- data/public/favicon.ico +0 -0
- data/spec/controllers/entities/accounts_controller_spec.rb +5 -5
- data/spec/controllers/entities/campaigns_controller_spec.rb +5 -5
- data/spec/controllers/entities/contacts_controller_spec.rb +42 -5
- data/spec/controllers/entities/leads_controller_spec.rb +7 -7
- data/spec/controllers/entities/opportunities_controller_spec.rb +5 -5
- data/spec/controllers/home_controller_spec.rb +3 -3
- data/spec/controllers/tasks_controller_spec.rb +29 -0
- data/spec/factories/shared_factories.rb +1 -3
- data/spec/features/support/selector_helpers.rb +4 -4
- data/spec/helpers/tasks_helper_spec.rb +10 -5
- data/spec/lib/permissions_spec.rb +10 -22
- data/spec/mailers/user_mailer_spec.rb +5 -4
- data/spec/models/observers/entity_observer_spec.rb +13 -8
- data/spec/models/polymorphic/task_spec.rb +111 -32
- data/spec/routing/accounts_routing_spec.rb +1 -1
- data/spec/routing/campaigns_routing_spec.rb +1 -1
- data/spec/routing/contacts_routing_spec.rb +1 -1
- data/spec/routing/leads_routing_spec.rb +1 -1
- data/spec/routing/opportunities_routing_spec.rb +1 -1
- data/spec/shared/controllers.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/views/accounts/create.js.haml_spec.rb +3 -3
- data/spec/views/accounts/index.js.haml_spec.rb +4 -4
- data/spec/views/accounts/update.js.haml_spec.rb +5 -5
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/destroy.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/index.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/suspend.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/update.js.haml_spec.rb +3 -3
- data/spec/views/campaigns/create.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/destroy.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/edit.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/index.js.haml_spec.rb +2 -2
- data/spec/views/campaigns/new.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/update.js.haml_spec.rb +7 -7
- data/spec/views/contacts/create.js.haml_spec.rb +4 -4
- data/spec/views/contacts/edit.js.haml_spec.rb +4 -4
- data/spec/views/contacts/index.js.html_spec.rb +2 -2
- data/spec/views/contacts/new.js.haml_spec.rb +2 -2
- data/spec/views/contacts/update.js.haml_spec.rb +11 -11
- data/spec/views/home/index.js.haml_spec.rb +1 -1
- data/spec/views/home/options.js.haml_spec.rb +3 -3
- data/spec/views/leads/convert.js.haml_spec.rb +3 -3
- data/spec/views/leads/create.js.haml_spec.rb +5 -5
- data/spec/views/leads/destroy.js.haml_spec.rb +1 -1
- data/spec/views/leads/edit.js.haml_spec.rb +4 -4
- data/spec/views/leads/index.js.haml_spec.rb +2 -2
- data/spec/views/leads/new.js.haml_spec.rb +1 -1
- data/spec/views/leads/promote.js.haml_spec.rb +13 -13
- data/spec/views/leads/reject.js.haml_spec.rb +6 -6
- data/spec/views/leads/update.js.haml_spec.rb +11 -11
- data/spec/views/opportunities/create.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/destroy.js.haml_spec.rb +1 -1
- data/spec/views/opportunities/edit.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/index.js.haml_spec.rb +2 -2
- data/spec/views/opportunities/update.js.haml_spec.rb +11 -11
- data/spec/views/tasks/complete.js.haml_spec.rb +5 -5
- data/spec/views/tasks/create.js.haml_spec.rb +13 -13
- data/spec/views/tasks/destroy.js.haml_spec.rb +3 -3
- data/spec/views/tasks/edit.js.haml_spec.rb +4 -4
- data/spec/views/tasks/new.js.haml_spec.rb +2 -2
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +44 -0
- data/spec/views/tasks/update.js.haml_spec.rb +17 -17
- data/spec/views/users/avatar.js.haml_spec.rb +1 -1
- data/spec/views/users/change_password.js.haml_spec.rb +4 -4
- data/spec/views/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/users/password.js.haml_spec.rb +2 -2
- data/spec/views/users/update.js.haml_spec.rb +5 -5
- data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
- data/vendor/assets/javascripts/ajax-chosen.jquery.coffee +166 -76
- data/vendor/assets/javascripts/chosen.jquery.coffee +2 -2
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-pt-BR.js +22 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/{jquery-ui-timepicker-sv.js → jquery-ui-timepicker-sv-SE.js} +0 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-th.js +19 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-fr-CA.js +21 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pt.js +21 -0
- data/vendor/assets/javascripts/rating.js +2 -2
- metadata +101 -122
- data/app/assets/images/facebook-close.gif +0 -0
- data/app/assets/javascripts/crm.js +0 -495
- data/app/assets/javascripts/crm_classes.js +0 -218
- data/app/assets/javascripts/crm_fields.js +0 -34
- data/app/assets/javascripts/crm_loginout.js +0 -29
- data/app/assets/javascripts/crm_textarea_autocomplete.js +0 -32
- data/app/assets/javascripts/groups.js.coffee +0 -8
- data/app/assets/javascripts/jquery-noconflict.js +0 -6
- data/app/assets/javascripts/timeago.js +0 -17
- data/app/views/lists/_personal_sidebar.html.haml +0 -28
- data/lib/fat_free_crm/gem_ext/active_model/serializers/xml/serializer/attribute.rb +0 -17
- data/lib/fat_free_crm/gem_ext/authlogic/session/cookies.rb +0 -16
- data/lib/fat_free_crm/plugin_dependencies.rb +0 -12
- data/lib/plugins/country_select/MIT-LICENSE +0 -20
- data/lib/plugins/country_select/README +0 -14
- data/lib/plugins/country_select/init.rb +0 -1
- data/lib/plugins/country_select/install.rb +0 -2
- data/lib/plugins/country_select/uninstall.rb +0 -2
- data/lib/plugins/gravatar_image_tag/Gemfile +0 -8
- data/lib/plugins/gravatar_image_tag/README.textile +0 -108
- data/lib/plugins/gravatar_image_tag/ROADMAP.textile +0 -33
- data/lib/plugins/gravatar_image_tag/Rakefile +0 -50
- data/lib/plugins/gravatar_image_tag/VERSION +0 -1
- data/lib/plugins/gravatar_image_tag/gravatar_image_tag.gemspec +0 -45
- data/lib/plugins/gravatar_image_tag/init.rb +0 -2
- data/lib/plugins/gravatar_image_tag/spec/gravatar_image_tag_spec.rb +0 -83
- data/lib/plugins/gravatar_image_tag/spec/test_helper.rb +0 -12
- data/lib/tasks/db/migrate.rake +0 -66
- data/lib/tasks/db/schema.rake +0 -20
- data/vendor/assets/javascripts/ajax-chosen-prototype.js +0 -2
- data/vendor/assets/javascripts/ajax-chosen.proto.coffee +0 -98
- data/vendor/assets/javascripts/chosen-prototype.js +0 -3
- data/vendor/assets/javascripts/chosen.proto.coffee +0 -580
- data/vendor/assets/javascripts/event.simulate.js +0 -64
- data/vendor/assets/javascripts/facebooklist.js +0 -548
- data/vendor/assets/javascripts/facebooklist.simulate.js +0 -28
- data/vendor/assets/javascripts/modalbox.js +0 -506
- data/vendor/assets/stylesheets/facebooklist.css +0 -47
@@ -21,8 +21,8 @@ describe "/opportunities/create" do
|
|
21
21
|
it "should hide [Create Opportunity] form and insert opportunity partial" do
|
22
22
|
render
|
23
23
|
|
24
|
-
rendered.should include("
|
25
|
-
rendered.should include(%Q
|
24
|
+
rendered.should include("$('#opportunities').prepend('<li class=\\'highlight opportunity\\' id=\\'opportunity_#{@opportunity.id}\\'")
|
25
|
+
rendered.should include(%Q/$('#opportunity_#{@opportunity.id}').effect("highlight"/)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "should update sidebar filters and recently viewed items when called from opportunities page" do
|
@@ -78,8 +78,8 @@ describe "/opportunities/create" do
|
|
78
78
|
|
79
79
|
render
|
80
80
|
|
81
|
-
rendered.should include("
|
82
|
-
rendered.should include(%Q
|
81
|
+
rendered.should include("$('#create_opportunity').html")
|
82
|
+
rendered.should include(%Q/$('#create_opportunity').effect("shake"/)
|
83
83
|
rendered.should include("crm.create_or_select_account(false)")
|
84
84
|
end
|
85
85
|
end
|
@@ -25,7 +25,7 @@ describe "/opportunities/destroy" do
|
|
25
25
|
|
26
26
|
rendered.should include("#sidebar")
|
27
27
|
rendered.should have_text("Recent Items")
|
28
|
-
rendered.should include("
|
28
|
+
rendered.should include("$('#filters').effect('shake'")
|
29
29
|
end
|
30
30
|
|
31
31
|
it "should update pagination when called from opportunities index" do
|
@@ -22,7 +22,7 @@ describe "/opportunities/edit" do
|
|
22
22
|
params[:cancel] = "true"
|
23
23
|
|
24
24
|
render
|
25
|
-
rendered.should include("
|
25
|
+
rendered.should include("$('#opportunity_#{@opportunity.id}').replaceWith")
|
26
26
|
end
|
27
27
|
|
28
28
|
it "cancel from opportunity landing page: should hide [Edit Opportunity] form" do
|
@@ -38,7 +38,7 @@ describe "/opportunities/edit" do
|
|
38
38
|
assign(:previous, previous = FactoryGirl.create(:opportunity, :user => current_user))
|
39
39
|
|
40
40
|
render
|
41
|
-
rendered.should include("
|
41
|
+
rendered.should include("$('#opportunity_#{previous.id}').replaceWith")
|
42
42
|
end
|
43
43
|
|
44
44
|
it "edit: remove previously open [Edit Opportunity] if it's no longer available" do
|
@@ -55,14 +55,14 @@ describe "/opportunities/edit" do
|
|
55
55
|
render
|
56
56
|
rendered.should include("crm.highlight_off('opportunity_#{@opportunity.id}');")
|
57
57
|
rendered.should include("crm.hide_form('create_opportunity')")
|
58
|
-
rendered.should include("
|
58
|
+
rendered.should include("$('#opportunity_#{@opportunity.id}').html")
|
59
59
|
end
|
60
60
|
|
61
61
|
it "edit from opportunity landing page: should show [Edit Opportunity] form" do
|
62
62
|
params[:cancel] = "false"
|
63
63
|
|
64
64
|
render
|
65
|
-
rendered.should include("
|
65
|
+
rendered.should include("$('#edit_opportunity').html")
|
66
66
|
rendered.should include("crm.flip_form('edit_opportunity'")
|
67
67
|
end
|
68
68
|
|
@@ -18,7 +18,7 @@ describe "/opportunities/index" do
|
|
18
18
|
|
19
19
|
render :template => 'opportunities/index', :formats => [:js]
|
20
20
|
|
21
|
-
rendered.should include("
|
21
|
+
rendered.should include("$('#opportunities').html")
|
22
22
|
rendered.should include("#paginate")
|
23
23
|
end
|
24
24
|
|
@@ -27,7 +27,7 @@ describe "/opportunities/index" do
|
|
27
27
|
|
28
28
|
render :template => 'opportunities/index', :formats => [:js]
|
29
29
|
|
30
|
-
rendered.should include("
|
30
|
+
rendered.should include("$('#opportunities').html('<div id=\\'empty\\'>")
|
31
31
|
rendered.should include("#paginate")
|
32
32
|
end
|
33
33
|
|
@@ -34,7 +34,7 @@ describe "/opportunities/update" do
|
|
34
34
|
rendered.should include("#sidebar")
|
35
35
|
rendered.should have_text("Opportunity At a Glance")
|
36
36
|
rendered.should have_text("Recent Items")
|
37
|
-
rendered.should include("
|
37
|
+
rendered.should include("$('#summary').effect('shake'")
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -45,8 +45,8 @@ describe "/opportunities/update" do
|
|
45
45
|
|
46
46
|
it "should replace [Edit Opportunity] with opportunity partial and highlight it" do
|
47
47
|
render
|
48
|
-
rendered.should include("
|
49
|
-
rendered.should include(%Q
|
48
|
+
rendered.should include("$('#opportunity_#{@opportunity.id}').replaceWith")
|
49
|
+
rendered.should include(%Q/$('#opportunity_#{@opportunity.id}').effect("highlight"/)
|
50
50
|
end
|
51
51
|
|
52
52
|
it "should update sidebar" do
|
@@ -54,7 +54,7 @@ describe "/opportunities/update" do
|
|
54
54
|
rendered.should include("sidebar")
|
55
55
|
rendered.should have_text("Opportunity Stages")
|
56
56
|
rendered.should have_text("Recent Items")
|
57
|
-
rendered.should include("
|
57
|
+
rendered.should include("$('#filters').effect('shake'")
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -90,7 +90,7 @@ describe "/opportunities/update" do
|
|
90
90
|
controller.request.env["HTTP_REFERER"] = "http://localhost/contacts/123"
|
91
91
|
render
|
92
92
|
|
93
|
-
rendered.should include(%Q
|
93
|
+
rendered.should include(%Q/$('#opportunity_#{@opportunity.id}').effect("highlight"/)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
@@ -107,9 +107,9 @@ describe "/opportunities/update" do
|
|
107
107
|
|
108
108
|
it "should redraw the [edit_opportunity] form and shake it" do
|
109
109
|
render
|
110
|
-
rendered.should include("
|
110
|
+
rendered.should include("$('#edit_opportunity').html")
|
111
111
|
rendered.should include('crm.create_or_select_account(false)')
|
112
|
-
rendered.should include(%Q
|
112
|
+
rendered.should include(%Q/$('#edit_opportunity').effect("shake"/)
|
113
113
|
rendered.should include('focus()')
|
114
114
|
end
|
115
115
|
end
|
@@ -121,9 +121,9 @@ describe "/opportunities/update" do
|
|
121
121
|
|
122
122
|
it "should redraw the [edit_opportunity] form and shake it" do
|
123
123
|
render
|
124
|
-
rendered.should include("
|
124
|
+
rendered.should include("$('#opportunity_#{@opportunity.id}').html")
|
125
125
|
rendered.should include('crm.create_or_select_account(false)')
|
126
|
-
rendered.should include(%Q
|
126
|
+
rendered.should include(%Q/$('#opportunity_#{@opportunity.id}').effect("shake"/)
|
127
127
|
rendered.should include('focus()')
|
128
128
|
end
|
129
129
|
end
|
@@ -140,8 +140,8 @@ describe "/opportunities/update" do
|
|
140
140
|
|
141
141
|
it "should redraw the [edit_opportunity] form and shake it" do
|
142
142
|
render
|
143
|
-
rendered.should include("
|
144
|
-
rendered.should include(%Q
|
143
|
+
rendered.should include("$('#opportunity_#{@opportunity.id}').html")
|
144
|
+
rendered.should include(%Q/$('#opportunity_#{@opportunity.id}').effect("shake"/)
|
145
145
|
rendered.should include('focus()')
|
146
146
|
end
|
147
147
|
end
|
@@ -26,8 +26,8 @@ describe "/tasks/complete" do
|
|
26
26
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
27
27
|
|
28
28
|
render
|
29
|
-
rendered.should include("
|
30
|
-
rendered.should include("
|
29
|
+
rendered.should include("$('#task_#{@task.id}').fadeOut")
|
30
|
+
rendered.should include("$('#list_due_asap').fadeOut")
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should update tasks sidebar" do
|
@@ -37,10 +37,10 @@ describe "/tasks/complete" do
|
|
37
37
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
38
38
|
|
39
39
|
render
|
40
|
-
rendered.should include("
|
40
|
+
rendered.should include("$('#sidebar').html")
|
41
41
|
rendered.should have_text("Assigned")
|
42
42
|
rendered.should have_text("Recent Items")
|
43
|
-
rendered.should include("
|
43
|
+
rendered.should include("$('#filters').effect('shake'")
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -50,7 +50,7 @@ describe "/tasks/complete" do
|
|
50
50
|
assign(:task, @task)
|
51
51
|
|
52
52
|
render
|
53
|
-
rendered.should include("
|
53
|
+
rendered.should include("$('#task_#{@task.id}').html('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
54
54
|
rendered.should include('<strike>')
|
55
55
|
end
|
56
56
|
|
@@ -23,23 +23,23 @@ describe "/tasks/create" do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should hide [Create Task] form and insert task partial" do
|
26
|
-
rendered.should include(%Q
|
27
|
-
rendered.should include(%Q
|
26
|
+
rendered.should include(%Q/$('#due_asap').before('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'>/)
|
27
|
+
rendered.should include(%Q/$('#task_#{@task.id}').effect("highlight"/)
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should update tasks title" do
|
31
31
|
if status == "assigned"
|
32
|
-
rendered.should include("
|
32
|
+
rendered.should include("$('#title').html('Assigned Tasks');")
|
33
33
|
else
|
34
|
-
rendered.should include("
|
34
|
+
rendered.should include("$('#title').html('Tasks');")
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
it "should update tasks sidebar" do
|
39
|
-
rendered.should include("
|
39
|
+
rendered.should include("$('#sidebar').html")
|
40
40
|
rendered.should have_text("Recent Items")
|
41
41
|
rendered.should have_text("Sometime Later")
|
42
|
-
rendered.should include("
|
42
|
+
rendered.should include("$('#filters').effect('shake'")
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -50,7 +50,7 @@ describe "/tasks/create" do
|
|
50
50
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
51
51
|
render
|
52
52
|
|
53
|
-
rendered.should include("
|
53
|
+
rendered.should include("$('#flash').html")
|
54
54
|
rendered.should include("crm.flash('notice', true)")
|
55
55
|
end
|
56
56
|
|
@@ -70,7 +70,7 @@ describe "/tasks/create" do
|
|
70
70
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks?view=assigned"
|
71
71
|
render
|
72
72
|
|
73
|
-
rendered.should include("
|
73
|
+
rendered.should include("$('#flash').html")
|
74
74
|
rendered.should include("crm.flash('notice', true)")
|
75
75
|
end
|
76
76
|
|
@@ -94,12 +94,12 @@ describe "/tasks/create" do
|
|
94
94
|
end
|
95
95
|
|
96
96
|
it "should update tasks title" do
|
97
|
-
rendered.should include("
|
97
|
+
rendered.should include("$('#create_task_title').html('Tasks')")
|
98
98
|
end
|
99
99
|
|
100
100
|
it "should insert #{status} partial and highlight it" do
|
101
|
-
rendered.should include("
|
102
|
-
rendered.should include(%Q
|
101
|
+
rendered.should include("$('#tasks').prepend('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'>")
|
102
|
+
rendered.should include(%Q/$('#task_#{@task.id}').effect("highlight"/)
|
103
103
|
end
|
104
104
|
|
105
105
|
it "should update recently viewed items" do
|
@@ -113,8 +113,8 @@ describe "/tasks/create" do
|
|
113
113
|
assign(:task, FactoryGirl.build(:task, :name => nil)) # make it invalid
|
114
114
|
render
|
115
115
|
|
116
|
-
rendered.should include(%Q
|
117
|
-
rendered.should include(
|
116
|
+
rendered.should include(%Q/$('#create_task').effect("shake"/)
|
117
|
+
rendered.should include(%/$('#new_task input[type=submit]').enable()/)
|
118
118
|
|
119
119
|
end
|
120
120
|
|
@@ -27,17 +27,17 @@ describe "/tasks/destroy" do
|
|
27
27
|
|
28
28
|
render
|
29
29
|
rendered.should include("slideUp")
|
30
|
-
rendered.should include("
|
30
|
+
rendered.should include("$('#list_due_asap').fadeOut")
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should update tasks sidebar" do
|
34
34
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
35
35
|
|
36
36
|
render
|
37
|
-
rendered.should include("
|
37
|
+
rendered.should include("$('#sidebar').html")
|
38
38
|
rendered.should have_text("Recent Items")
|
39
39
|
rendered.should have_text("Completed")
|
40
|
-
rendered.should include("
|
40
|
+
rendered.should include("$('#filters').effect('shake'")
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -24,7 +24,7 @@ describe "/tasks/edit" do
|
|
24
24
|
assign(:task, @task)
|
25
25
|
|
26
26
|
render
|
27
|
-
rendered.should include("
|
27
|
+
rendered.should include("$('#task_#{@task.id}').html('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
28
28
|
if view == "pending"
|
29
29
|
rendered.should include('type=\\"checkbox\\"')
|
30
30
|
else
|
@@ -47,7 +47,7 @@ describe "/tasks/edit" do
|
|
47
47
|
assign(:task, stub_task(view))
|
48
48
|
|
49
49
|
render
|
50
|
-
rendered.should include("
|
50
|
+
rendered.should include("$('#task_#{@previous.id}').replaceWith")
|
51
51
|
end
|
52
52
|
|
53
53
|
it "edit: should remove previous [Edit Task] form if previous task is not available" do
|
@@ -67,9 +67,9 @@ describe "/tasks/edit" do
|
|
67
67
|
|
68
68
|
render
|
69
69
|
rendered.should include("crm.highlight_off('task_#{@task.id}');")
|
70
|
-
rendered.should include("
|
70
|
+
rendered.should include("$('#task_#{@task.id}').html")
|
71
71
|
rendered.should have_text("On Specific Date")
|
72
|
-
rendered.should include("
|
72
|
+
rendered.should include("$('#task_name').focus();")
|
73
73
|
end
|
74
74
|
|
75
75
|
end
|
@@ -30,7 +30,7 @@ describe "/tasks/new" do
|
|
30
30
|
params[:cancel] = nil
|
31
31
|
render
|
32
32
|
|
33
|
-
rendered.should include("
|
33
|
+
rendered.should include("$('#create_task').html")
|
34
34
|
rendered.should include("crm.flip_form('create_task');")
|
35
35
|
end
|
36
36
|
end
|
@@ -40,7 +40,7 @@ describe "/tasks/new" do
|
|
40
40
|
params[:cancel] = "true"
|
41
41
|
render
|
42
42
|
|
43
|
-
rendered.should_not include("
|
43
|
+
rendered.should_not include("$('#create_task').html")
|
44
44
|
rendered.should include("crm.flip_form('create_task');")
|
45
45
|
end
|
46
46
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
6
|
+
require 'spec_helper'
|
7
|
+
|
8
|
+
describe "/tasks/uncomplete" do
|
9
|
+
include TasksHelper
|
10
|
+
|
11
|
+
before do
|
12
|
+
login_and_assign
|
13
|
+
assign(:bucket, [])
|
14
|
+
end
|
15
|
+
|
16
|
+
describe "uncomplete from Tasks tab (completed view)" do
|
17
|
+
before do
|
18
|
+
@task = FactoryGirl.create(:task)
|
19
|
+
assign(:task, @task)
|
20
|
+
assign(:view, "completed")
|
21
|
+
assign(:empty_bucket, :due_asap)
|
22
|
+
assign(:task_total, stub_task_total("completed"))
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should slide up uncompleted task partial" do
|
26
|
+
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
27
|
+
|
28
|
+
render
|
29
|
+
rendered.should include("$('#task_#{@task.id}').slideUp")
|
30
|
+
rendered.should include("$('#list_due_asap').fadeOut")
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should update tasks sidebar" do
|
34
|
+
assign(:task, FactoryGirl.create(:task))
|
35
|
+
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
36
|
+
|
37
|
+
render
|
38
|
+
rendered.should include("$('#sidebar').html")
|
39
|
+
rendered.should have_text("Assigned")
|
40
|
+
rendered.should have_text("Recent Items")
|
41
|
+
rendered.should include("$('#filters').effect('shake'")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -24,30 +24,30 @@ describe "/tasks/update" do
|
|
24
24
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
25
25
|
render
|
26
26
|
|
27
|
-
rendered.should include(%Q
|
28
|
-
rendered.should include(%Q
|
27
|
+
rendered.should include(%Q/$('#task_#{@task.id}').remove();/)
|
28
|
+
rendered.should include(%Q/$('#list_due_asap').fadeOut/)
|
29
29
|
end
|
30
30
|
|
31
31
|
it "from Tasks tab: should show updated task in a new bucket" do
|
32
32
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
33
33
|
render
|
34
|
-
rendered.should include("
|
35
|
-
rendered.should include("
|
34
|
+
rendered.should include("$('#due_tomorrow').prepend('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
35
|
+
rendered.should include("$('#task_#{@task.id}').effect('highlight'")
|
36
36
|
end
|
37
37
|
|
38
38
|
it "from Tasks tab: should update tasks sidebar" do
|
39
39
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
40
40
|
render
|
41
41
|
|
42
|
-
rendered.should include("
|
42
|
+
rendered.should include("$('#due_tomorrow').prepend('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
43
43
|
rendered.should have_text("Assigned")
|
44
44
|
rendered.should have_text("Recent Items")
|
45
|
-
rendered.should include("
|
45
|
+
rendered.should include("$('#filters').effect('shake'")
|
46
46
|
end
|
47
47
|
|
48
48
|
it "from asset page: should update task partial in place" do
|
49
49
|
render
|
50
|
-
rendered.should include("
|
50
|
+
rendered.should include("$('#task_#{@task.id}').html('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
51
51
|
end
|
52
52
|
|
53
53
|
it "from asset page: should update recently viewed items" do
|
@@ -70,9 +70,9 @@ describe "/tasks/update" do
|
|
70
70
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks"
|
71
71
|
|
72
72
|
render
|
73
|
-
rendered.should include("
|
73
|
+
rendered.should include("$('#task_#{@task.id}').remove();")
|
74
74
|
rendered.should have_text("view assigned tasks")
|
75
|
-
rendered.should include("
|
75
|
+
rendered.should include("$('#flash').html")
|
76
76
|
rendered.should include("crm.flash('notice', true)")
|
77
77
|
end
|
78
78
|
|
@@ -84,9 +84,9 @@ describe "/tasks/update" do
|
|
84
84
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks?view=assigned"
|
85
85
|
|
86
86
|
render
|
87
|
-
rendered.should include("
|
87
|
+
rendered.should include("$('#task_#{@task.id}').remove();")
|
88
88
|
rendered.should have_text("view pending tasks")
|
89
|
-
rendered.should include("
|
89
|
+
rendered.should include("$('#flash').html")
|
90
90
|
rendered.should include("crm.flash('notice', true)")
|
91
91
|
end
|
92
92
|
|
@@ -97,7 +97,7 @@ describe "/tasks/update" do
|
|
97
97
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks?view=assigned"
|
98
98
|
|
99
99
|
render
|
100
|
-
rendered.should include("
|
100
|
+
rendered.should include("$('#task_#{@task.id}').html('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
101
101
|
end
|
102
102
|
|
103
103
|
it "from Tasks tab: should update tasks sidebar" do
|
@@ -107,10 +107,10 @@ describe "/tasks/update" do
|
|
107
107
|
controller.request.env["HTTP_REFERER"] = "http://localhost/tasks?view=assigned"
|
108
108
|
render
|
109
109
|
|
110
|
-
rendered.should include("
|
110
|
+
rendered.should include("$('#sidebar').html")
|
111
111
|
rendered.should have_text("Recent Items")
|
112
112
|
rendered.should have_text("Assigned")
|
113
|
-
rendered.should include("
|
113
|
+
rendered.should include("$('#filters').effect('shake'")
|
114
114
|
end
|
115
115
|
|
116
116
|
it "from asset page: should should re-render task partial" do
|
@@ -118,7 +118,7 @@ describe "/tasks/update" do
|
|
118
118
|
assign(:task, @task = FactoryGirl.create(:task, :assignee => FactoryGirl.create(:user)))
|
119
119
|
render
|
120
120
|
|
121
|
-
rendered.should include("
|
121
|
+
rendered.should include("$('#task_#{@task.id}').html('<li class=\\'highlight task\\' id=\\'task_#{@task.id}\\'")
|
122
122
|
end
|
123
123
|
|
124
124
|
it "from asset page: should update recently viewed items" do
|
@@ -137,8 +137,8 @@ describe "/tasks/update" do
|
|
137
137
|
@task.errors.add(:name)
|
138
138
|
|
139
139
|
render
|
140
|
-
rendered.should include(
|
141
|
-
rendered.should include("
|
140
|
+
rendered.should include(%/$('#task_#{@task.id}').effect("shake"/)
|
141
|
+
rendered.should include("$('#task_submit').enable()")
|
142
142
|
end
|
143
143
|
|
144
144
|
end
|