about summary refs log tree commit diff
path: root/spec/models/poll_vote_spec.rb
blob: 563f346993a3977cc9e91d8056312154917274b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe PollVote, type: :model do
  describe '#object_type' do
    let(:poll_vote) { Fabricate.build(:poll_vote) }

    it 'returns :vote' do
      expect(poll_vote.object_type).to eq :vote
    end
  end
end