E
Size: a a a
E
GG
SG
GG
context 'when tries to create votes one by one' do
let(:result) do
described_class.new.call(params: { value: vote.value, entry_id: entry.id, user_id: user.id,
fingerprint: { 'ip' => '127.0.0.1', 'cookie' => '123' } })
end
it 'creates only one vote' do
expect do
result.value
end.to change(Vote, :count).by(1)
expect do
result.value
end.to_not change(Vote, :count)
expect do
result.value
end.to_not change(Vote, :count)
end
end
GG
EE
EE
GG
И
E
ch
E