Sha256: 8c689d6be509073bd6bb7d97c6e9a31cb781e97ba0f2d646e7c0b9d585303925
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require 'spec_helper' describe "/tasks/uncomplete" do include TasksHelper before do login assign(:bucket, []) end describe "uncomplete from Tasks tab (completed view)" do before do @task = build_stubbed(:task) assign(:task, @task) assign(:view, "completed") assign(:empty_bucket, :due_asap) assign(:task_total, stub_task_total("completed")) end it "should slide up uncompleted task partial" do controller.request.env["HTTP_REFERER"] = "http://localhost/tasks" render expect(rendered).to include("$('#task_#{@task.id}').slideUp") expect(rendered).to include("$('#list_due_asap').fadeOut") end it "should update tasks sidebar" do assign(:task, build_stubbed(:task)) controller.request.env["HTTP_REFERER"] = "http://localhost/tasks" render expect(rendered).to include("$('#sidebar').html") expect(rendered).to have_text("Assigned") expect(rendered).to have_text("Recent Items") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.20.1 | spec/views/tasks/uncomplete.js.haml_spec.rb |
fat_free_crm-0.20.0 | spec/views/tasks/uncomplete.js.haml_spec.rb |