require 'rails_helper' RSpec.describe Seat, type: :model do before :all do @seat = FactoryGirl.create(:seat) end subject { @seat } it { should respond_to :table } it { should respond_to :user } it '#table returns a Table' do expect(@seat.table.class).to match Table end it '#user returns a User' do expect(@seat.user.class).to match User end end