2019-07-27 01:24:26 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-03 13:18:23 -08:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe PollVote, type: :model do
|
2019-07-27 01:24:26 -07:00
|
|
|
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
|
2019-03-03 13:18:23 -08:00
|
|
|
end
|