Skip to content

Commit

Permalink
AccessibilityGenerator: Update gem declaration
Browse files Browse the repository at this point in the history
In order to avoid the following failure in CI, we need to load the
latest build (not release) of capybara_accessibility_audit.

```
NoMethodError: undefined method `configure' for module RSpec (NoMethodError)

      RSpec.configure do |config|
```

For reference, [this commit][] fixes the issue.

[this commit]: thoughtbot/capybara_accessibility_audit@0ee6922
  • Loading branch information
stevepolitodesign committed Apr 8, 2024
1 parent 1c9134f commit 1a6c058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generators/suspenders/accessibility_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AccessibilityGenerator < Rails::Generators::Base

def add_capybara_gems
gem_group :test do
gem "capybara_accessibility_audit"
gem "capybara_accessibility_audit", github: "thoughtbot/capybara_accessibility_audit"
gem "capybara_accessible_selectors", github: "citizensadvice/capybara_accessible_selectors"
end
Bundler.with_unbundled_env { run "bundle install" }
Expand Down
2 changes: 1 addition & 1 deletion test/generators/suspenders/accessibility_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AccessibilityGeneratorTest < Rails::Generators::TestCase
run_generator

assert_file app_root("Gemfile") do |file|
assert_match "capybara_accessibility_audit", file
assert_match(/"capybara_accessibility_audit", github: "thoughtbot\/capybara_accessibility_audit"/, file)
assert_match "capybara_accessible_selectors", file
end
end
Expand Down

0 comments on commit 1a6c058

Please sign in to comment.