diff --git a/Gemfile.devel b/Gemfile.devel deleted file mode 100644 index 0239471..0000000 --- a/Gemfile.devel +++ /dev/null @@ -1,3 +0,0 @@ -gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "fix/primary-docidentifier" -gem "metanorma-generic", git: "https://github.com/metanorma/metanorma-generic", branch: "fix/primary-docidentifier" -gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "main" diff --git a/lib/metanorma/csa/version.rb b/lib/metanorma/csa/version.rb index 03fbb73..460e2dc 100644 --- a/lib/metanorma/csa/version.rb +++ b/lib/metanorma/csa/version.rb @@ -1,5 +1,5 @@ module Metanorma module Csa - VERSION = "2.4.4".freeze + VERSION = "2.4.5".freeze end end diff --git a/spec/metanorma/validate_spec.rb b/spec/metanorma/validate_spec.rb index 1e74793..d4e55f2 100644 --- a/spec/metanorma/validate_spec.rb +++ b/spec/metanorma/validate_spec.rb @@ -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| @@ -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 @@ -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 @@ -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 @@ -73,7 +71,5 @@ text INPUT expect(File.read("test.err.html")).to include "pokemon-man is not a recognised role" - end - end