Fix notes spec.

This commit is contained in:
Fatih Acet 2016-11-15 01:26:54 +03:00
parent a1d1a41479
commit 56293399e6

View file

@ -70,10 +70,8 @@ describe 'Comments', feature: true do
end
describe 'when editing a note', js: true do
it 'contains the hidden edit form' do
page.within("#note_#{note.id}") do
is_expected.to have_css('.note-edit-form', visible: false)
end
it 'there should be a hidden edit form' do
is_expected.to have_css('.note-edit-form', visible: false, count: 1)
end
describe 'editing the note' do