diff options
author | ysksn <bluewhale1982@gmail.com> | 2019-07-27 17:24:26 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-27 10:24:26 +0200 |
commit | d6ada2eb30a2e73b71d8ef037d3764ff006fb745 (patch) | |
tree | 0312893d2c1838e70313ed94d78ab7d94c5d9ea3 /spec/models | |
parent | 8a4674f2c3d89c998eb5438b96b7977dc2be3167 (diff) |
Implement pending tests (#11415)
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/poll_vote_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/models/poll_vote_spec.rb b/spec/models/poll_vote_spec.rb index 354afd535..563f34699 100644 --- a/spec/models/poll_vote_spec.rb +++ b/spec/models/poll_vote_spec.rb @@ -1,5 +1,13 @@ +# frozen_string_literal: true + require 'rails_helper' RSpec.describe PollVote, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + 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 |