poll_vote_spec.rb 270 B

12345678910111213
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe PollVote, type: :model do
  4. describe '#object_type' do
  5. let(:poll_vote) { Fabricate.build(:poll_vote) }
  6. it 'returns :vote' do
  7. expect(poll_vote.object_type).to eq :vote
  8. end
  9. end
  10. end