mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 13:44:09 +00:00
Fix styling issue: " -> '
This commit is contained in:
parent
8250e1305e
commit
68bbdb9fc9
1 changed files with 2 additions and 2 deletions
|
|
@ -6,14 +6,14 @@ describe Event do
|
|||
it 'counts words in abstract' do
|
||||
event = build(:event)
|
||||
expect(event.abstract_word_count).to eq(233)
|
||||
event.update_attributes!(abstract: "abstract.")
|
||||
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 = ""
|
||||
event.abstract = ''
|
||||
expect(event.abstract_word_count).to eq(0)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue