mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Remove #abstract_word_count example
There is no logic in this method, just method chaining. This is a non-test.
This commit is contained in:
parent
86b2bd426a
commit
d19a53bd0e
1 changed files with 0 additions and 16 deletions
|
|
@ -293,22 +293,6 @@ describe Event do
|
|||
end
|
||||
end
|
||||
|
||||
describe '#abstract_word_count' do
|
||||
it 'counts words in abstract' do
|
||||
event = build(:event)
|
||||
expect(event.abstract_word_count).to eq(event.abstract.to_s.split.size)
|
||||
event.update_attributes!(abstract: 'abstract.')
|
||||
expect(event.abstract_word_count).to eq(1)
|
||||
end
|
||||
|
||||
it 'counts 0 when abstract is empty' do
|
||||
event = build(:event, abstract: nil)
|
||||
expect(event.abstract_word_count).to eq(0)
|
||||
event.abstract = ''
|
||||
expect(event.abstract_word_count).to eq(0)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#transition_possible?(transition)' do
|
||||
shared_examples 'transition_possible?(transition)' do |state, transition, expected|
|
||||
it "returns #{expected} for #{transition} transition, when the event is #{state}}" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue