diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4ca3c4f..8cd31a4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -57,8 +57,8 @@ end Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example| - path = example.example_group.top_level_description.gsub(%r{^/}, '').gsub('/', '-').gsub(' is accessible', '') - standards = example.description.split(' ').last + example.example_group.top_level_description.gsub(%r{^/}, '').gsub('/', '-').gsub(' is accessible', '') + standards = example.description.split.last "tmp/capybara/screenshot_#{page}_#{standards}" end diff --git a/spec/support/jekyll.rb b/spec/support/jekyll.rb index bf3d34b..e288d08 100644 --- a/spec/support/jekyll.rb +++ b/spec/support/jekyll.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'jekyll' # Tools to build / compile the Jekyll site and extract the sitemap