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
