diff --git a/NEWS.md b/NEWS.md index 572b5cf2..264854c0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ Unreleased * Require `--skip-rubocop` in favor of our [linting configuration][] +* Fixed: [Specify a tag when installing capybara_accessible_selectors](https://github.com/thoughtbot/suspenders/issues/1228) [linting configuration]: https://github.com/thoughtbot/suspenders/blob/main/FEATURES.md#linting diff --git a/lib/generators/suspenders/accessibility_generator.rb b/lib/generators/suspenders/accessibility_generator.rb index 44c415af..0428b33c 100644 --- a/lib/generators/suspenders/accessibility_generator.rb +++ b/lib/generators/suspenders/accessibility_generator.rb @@ -15,7 +15,7 @@ class AccessibilityGenerator < Rails::Generators::Base def add_capybara_gems gem_group :test do gem "capybara_accessibility_audit", github: "thoughtbot/capybara_accessibility_audit" - gem "capybara_accessible_selectors", github: "citizensadvice/capybara_accessible_selectors" + gem "capybara_accessible_selectors", github: "citizensadvice/capybara_accessible_selectors", tag: "v0.12.0" end Bundler.with_unbundled_env { run "bundle install" } end diff --git a/test/generators/suspenders/accessibility_generator_test.rb b/test/generators/suspenders/accessibility_generator_test.rb index bf55abdf..a95bfa98 100644 --- a/test/generators/suspenders/accessibility_generator_test.rb +++ b/test/generators/suspenders/accessibility_generator_test.rb @@ -39,7 +39,7 @@ class AccessibilityGeneratorTest < Rails::Generators::TestCase expected_output = <<~RUBY group :test do gem "capybara_accessibility_audit", github: "thoughtbot/capybara_accessibility_audit" - gem "capybara_accessible_selectors", github: "citizensadvice/capybara_accessible_selectors" + gem "capybara_accessible_selectors", github: "citizensadvice/capybara_accessible_selectors", tag: "v0.12.0" end RUBY