Sha256: d3b42e779f22e631aae8674064ce65f795603c00cc64505b3b1b370128e7d383

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 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 File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe "/comments/new" do
  include CommentsHelper

  before do
    assign(:comment, stub_model(Comment,
      :new_record? => true
    ))
    assign(:commentable, "contact")
    params["contact_id"] = "123"
  end

  it "should render new form" do
    render

    rendered.should include("hide()")
    rendered.should include("show()")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 spec/views/comments/new.rjs_spec.rb
fat_free_crm-0.12.2 spec/views/comments/new.rjs_spec.rb
fat_free_crm-0.12.1 spec/views/comments/new.rjs_spec.rb
fat_free_crm-0.12.0 spec/views/comments/new.rjs_spec.rb