Setup RSpec

This commit is contained in:
Gabriel Arazas 2023-10-29 09:56:43 +08:00
parent 6e5aa75a6b
commit ad2834cafe
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 15 additions and 0 deletions

1
.rspec Normal file
View File

@ -0,0 +1 @@
--require ./spec/spec_helper.rb

14
spec/spec_helper.rb Normal file
View File

@ -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