Fix textile references

However, I did not rename the textilizable block ...

[ci skip]
pull/6827/head
Oliver Günther 6 years ago
parent c101f53c5a
commit 6a458fd573
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      spec/features/block_editing_spec.rb
  2. 2
      spec/models/my_projects_overview_spec.rb

@ -150,7 +150,7 @@ describe 'My project page editing', type: :feature, js: true do
# edit form should be open
find('#block_title_a').set 'My title'
find('#textile_a').set 'My *textile* content'
find('#textile_a').set 'My **commonmark** content'
find('#a-form-submit').click
# expect changes to be saved
@ -159,7 +159,7 @@ describe 'My project page editing', type: :feature, js: true do
custom_block = find_block(hidden, :a)
expect(custom_block).to have_selector('.widget-box--header-title', text: 'My title')
expect(custom_block).to have_selector('#a-text strong', text: 'textile')
expect(custom_block).to have_selector('#a-text strong', text: 'commonmark')
# edit form should be closed
expect(custom_block).to have_no_selector('#block_title_a', visible: true)

@ -56,7 +56,7 @@ describe MyProjectsOverview, type: :model do
ce = subject.new_custom_element
expect(ce[0]).to eq("a")
expect(ce[1]).to be_kind_of String
expect(ce[2]).to match(/^h3\./)
expect(ce[2]).to match(/^### Custom text/)
end
it "can save a custom element" do

Loading…
Cancel
Save