6
0
Ответвление 0
bastodon/spec/models/poll_vote_spec.rb
2019-07-27 10:24:26 +02:00

13 строки
270 Б
Ruby

# 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