From ad2834cafeb3e29c5a30d2606fcd23d35f2d7d5a Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 29 Oct 2023 09:56:43 +0800 Subject: [PATCH] Setup RSpec --- .rspec | 1 + spec/spec_helper.rb | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .rspec create mode 100644 spec/spec_helper.rb diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..c7a3d35 --- /dev/null +++ b/.rspec @@ -0,0 +1 @@ +--require ./spec/spec_helper.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..d6453b8 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +require 'asciidoctor' +require 'asciidoctor/foodogsquared-extensions' + +RSpec.configure do + def fixtures_dir + File.join __dir__, 'fixtures' + end + + def fixtures_file path + File.join fixtures_dir, path + end +end