diff --git a/app/models/poll.rb b/app/models/poll.rb index ebd4644094..4844d2d23c 100644 --- a/app/models/poll.rb +++ b/app/models/poll.rb @@ -40,7 +40,6 @@ class Poll < ApplicationRecord validates_with PollValidator, on: :create, if: :local? scope :attached, -> { where.not(status_id: nil) } - scope :unattached, -> { where(status_id: nil) } before_validation :prepare_options, if: :local? before_validation :prepare_votes_count diff --git a/spec/models/poll_spec.rb b/spec/models/poll_spec.rb index 66f521ab3f..0a4892eba4 100644 --- a/spec/models/poll_spec.rb +++ b/spec/models/poll_spec.rb @@ -20,14 +20,6 @@ RSpec.describe Poll do expect(results).to eq([attached_poll]) end end - - describe '.unattached' do - it 'finds the correct records' do - results = described_class.unattached - - expect(results).to eq([not_attached_poll]) - end - end end describe '#reset_votes!' do