Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Mar 25, 2024
1 parent be4e9bc commit dc4f6d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 0 additions & 3 deletions Gemfile.devel

This file was deleted.

2 changes: 1 addition & 1 deletion lib/metanorma/csa/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module Csa
VERSION = "2.4.4".freeze
VERSION = "2.4.5".freeze
end
end
14 changes: 5 additions & 9 deletions spec/metanorma/validate_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require "fileutils"

require 'spec_helper'
require "spec_helper"
RSpec.describe Metanorma::Csa do
context "when xref_error.adoc compilation" do
around do |example|
Expand All @@ -19,13 +18,13 @@
mock_pdf
Metanorma::Compile
.new
.compile("spec/assets/xref_error.adoc", type: "csa", :"agree-to-terms" => true)
.compile("spec/assets/xref_error.adoc", type: "csa", "agree-to-terms": true)
end.to(change { File.exist?("spec/assets/xref_error.err.html") }
.from(false).to(true))
end
end

it 'Warns of illegal doctype' do
it "Warns of illegal doctype" do
FileUtils.rm_rf "test.err.html"
Asciidoctor.convert(<<~"INPUT", backend: :csa, header_footer: true)
= Document title
Expand All @@ -38,10 +37,9 @@
text
INPUT
expect(File.read("test.err.html")).to include "pizza is not a legal document type"

end

it 'Warns of illegal status' do
it "Warns of illegal status" do
input = <<~"INPUT"
= Document title
Author
Expand All @@ -58,7 +56,7 @@
expect(File.read("test.err.html")).to include "pizza is not a recognised status"
end

it 'Warns of illegal role' do
it "Warns of illegal role" do
FileUtils.rm_rf "test.err.html"
Asciidoctor.convert(<<~"INPUT", backend: :csa, header_footer: true)
= Document title
Expand All @@ -73,7 +71,5 @@
text
INPUT
expect(File.read("test.err.html")).to include "pokemon-man is not a recognised role"

end

end

0 comments on commit dc4f6d4

Please sign in to comment.