This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-07-27 10:24:26 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-03 22:18:23 +01:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe PollVote, type: :model do
|
2019-07-27 10:24:26 +02: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 22:18:23 +01:00
|
|
|
end
|