Skip to content

Commit

Permalink
delint (unsafe?)
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Aug 15, 2024
1 parent d4c14e0 commit 81d85c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions spec/support/jekyll.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'jekyll'

# Tools to build / compile the Jekyll site and extract the sitemap
Expand Down

0 comments on commit 81d85c7

Please sign in to comment.