From 8edaa4b2ddad5630b95e1165449e941c75ab031b Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Mon, 8 Apr 2024 06:01:33 -0400 Subject: [PATCH] AccessibilityGenerator: Update gem declaration (#1185) 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]: https://github.com/thoughtbot/capybara_accessibility_audit/commit/0ee6922ef19a391fb617778ef730af30b2680759 --- lib/generators/suspenders/accessibility_generator.rb | 2 +- test/generators/suspenders/accessibility_generator_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/suspenders/accessibility_generator.rb b/lib/generators/suspenders/accessibility_generator.rb index 85b91a553..ea6da16b6 100644 --- a/lib/generators/suspenders/accessibility_generator.rb +++ b/lib/generators/suspenders/accessibility_generator.rb @@ -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" } diff --git a/test/generators/suspenders/accessibility_generator_test.rb b/test/generators/suspenders/accessibility_generator_test.rb index c8ca95ef1..927e96b0c 100644 --- a/test/generators/suspenders/accessibility_generator_test.rb +++ b/test/generators/suspenders/accessibility_generator_test.rb @@ -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