require 'test_helper' class VendorTest < ActiveSupport::TestCase should_belong_to :company should_validate_presence_of :name context "a new free account vendor factory" do setup do @vendor = Factory.create(:vendor) end should "have a free account set" do assert @vendor.account.present? end end end