require 'test_helper'

class AttachesControllerTest < ActionController::TestCase
	def setup
		@company = companies(:one)
	end

	test "should new attach" do
		get :new, :company_id => @company.id
		assert_response :success
	end

	test "should create attach" do
		assert_difference('Attach.count') do
			post :create, attach: {cnpj: "123432", address: "test test", :company_id => @company.id,
				user_id: 1}
		end
	end
end
Create test to attaches controllers
Create test to attaches controllers

Signed-off-by: Karine Valença <81c9686be0876624a969b7a8b3eb717d09328dbb@gmail.com>
Signed-off-by: Lucas Andrade <cf3349e1d5414df4c8ea6c38b698f96e945f0bc5@gmail.com>
