Sha256: bc7e740e64178d810f79b264dc4ad7a9290650b9d8d6180a17f2be191b43df0d

Contents?: true

Size: 788 Bytes

Versions: 7

Compression:

Stored size: 788 Bytes

Contents

# 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 "/comments/edit" do
  include CommentsHelper

  before do
    assign(:comment, stub_model(Comment,
      :id => 321,
      :new_record? => false,
      :commentable => stub_model(Contact, :id => '123')
    ))
    #params["contact_id"] = "123"
    assign(:current_user, stub_model(User,
      :email => 'test@example.com'
    ))
  end

  it "should render edit form" do
    render

    rendered.should include("textarea")
    rendered.should include("123")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.5 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.4 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.3 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.2 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.1 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.13.0 spec/views/comments/edit.js.haml_spec.rb