Skip to content

Commit

Permalink
AccessibilityGenerator: Update gem declaration (#1185)
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 authored Apr 8, 2024
1 parent 1c9134f commit 8edaa4b
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 @@ -38,7 +38,7 @@ class AccessibilityGeneratorTest < Rails::Generators::TestCase
test "adds gems to Gemfile" do
expected_output = <<~RUBY
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
RUBY
Expand Down

0 comments on commit 8edaa4b

Please sign in to comment.