Sha256: 0b08b1ed630692a30e4fea3e9c7bbdfc7e9d31179ef1c4f8a339568e153dc5af

Contents?: true

Size: 891 Bytes

Versions: 15

Compression:

Stored size: 891 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

    expect(rendered).to include("textarea")
    expect(rendered).to include("123")
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.15.2 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.16.4 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.14.1 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.15.1 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.16.3 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.16.2 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.16.1 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.16.0 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.15.0 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.15.0.beta.2 spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.15.0.beta spec/views/comments/edit.js.haml_spec.rb
fat_free_crm-0.14.0 spec/views/comments/edit.js.haml_spec.rb
reduced_fat_crm-0.15.0.beta spec/views/comments/edit.js.haml_spec.rb
reduced_fat_crm-0.14.0 spec/views/comments/edit.js.haml_spec.rb