require 'spec_helper'

describe 'Customer remove a comment for fixxpert' do
  it 'should remove the comment' do
    fixxpert = create :fixxpert
    customer = create :customer

    comment = create :comment, user: customer, for_user: fixxpert

    login_as_user customer
    click_link 'Fixxpert'
    click_link 'Find a fixxpert'
    click_link "show_fixxpert_#{fixxpert.id}"

    click_link "delete_comment_#{comment.id}"
    page.should_not have_content comment.text
  end

end
