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