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