Skip to content

Commit

Permalink
Update rubocop-rspec requirement from ~> 2.11.1 to ~> 2.20.0 (#457)
Browse files Browse the repository at this point in the history
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop-rspec@v2.11.1...v2.20.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 8, 2024
1 parent dffd2a4 commit 1aa89bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion asciidoctor-epub3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 3.12.0'
s.add_development_dependency 'rubocop', '~> 1.50.2'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 2.11.1'
s.add_development_dependency 'rubocop-rspec', '~> 2.20.0'

s.add_runtime_dependency 'asciidoctor', '~> 2.0'
s.add_runtime_dependency 'gepub', '~> 1.0.0'
Expand Down
12 changes: 7 additions & 5 deletions spec/converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
describe Asciidoctor::Epub3::Converter do
describe '#convert' do
it 'converts empty file to epub without exceptions' do
to_epub fixture_file('empty.adoc')
expect(to_epub(fixture_file('empty.adoc'))).not_to be_nil
end

it 'converts empty file to mobi without exceptions' do
to_mobi fixture_file('empty.adoc')
expect(to_mobi(fixture_file('empty.adoc'))).not_to be_nil
end

it 'converts empty heredoc document to epub without exceptions' do
to_epub ''
expect(to_epub('')).not_to be_nil
end

it 'converts minimal heredoc document to epub without exceptions' do
Expand Down Expand Up @@ -262,21 +262,23 @@
end

it "doesn't crash when sees inline toc" do
to_epub <<~EOS
book = to_epub <<~EOS
= Title
toc::[]
EOS
expect(book).not_to be_nil
end

it 'does not crash when sees inline pass macro `m` with an icon' do
to_epub <<~EOS
book = to_epub <<~EOS
= Test
:icons: font
:call-to-action: pass:m,q[icon:hand-o-right[] *Call to Action*]
{call-to-action}
EOS
expect(book).not_to be_nil
end

it 'supports video' do
Expand Down

0 comments on commit 1aa89bc

Please sign in to comment.