require 'test_helper'

class ContactsControllerTest < ActionDispatch::IntegrationTest
  setup do
  end

  test "should get index" do
    get contacts_path
    assert_response :success
  end

  test "should create contact" do
    assert_difference('Contact.count') do
      post contacts_url, params: { contact: { name: "12333", email: "xxx@xsxx.com", mobile: "13544443333", subject: "Hello" }}
    end

    assert_redirected_to contacts_path()
  end


end
