Skip to content

Commit

Permalink
make rubocop happier
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud committed Sep 5, 2024
1 parent e5ff625 commit 2c4cc6b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ require:
- rubocop-rails
- rubocop-rake
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara

AllCops:
NewCops: enable
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ group :development, :test do
gem "rubocop-rake", require: false
gem "rubocop-rails", require: false
gem "rubocop-rspec", require: false
gem "rubocop-rspec_rails", require: false
gem "rubocop-capybara", require: false

gem "codeclimate-test-reporter"
end
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.0)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-performance (1.21.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
Expand All @@ -307,6 +309,9 @@ GEM
rubocop (~> 1.0)
rubocop-rspec (3.0.4)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
ruby-lsp (0.17.13)
language_server-protocol (~> 3.17.0)
prism (>= 0.29.0, < 0.31)
Expand Down Expand Up @@ -395,10 +400,12 @@ DEPENDENCIES
rspec-rails
rspec_junit_formatter
rubocop (>= 1.65.1)
rubocop-capybara
rubocop-performance
rubocop-rails
rubocop-rake
rubocop-rspec
rubocop-rspec_rails
ruby-lsp
selenium-webdriver
simplecov (~> 0.17.0)
Expand Down
6 changes: 3 additions & 3 deletions spec/system/logins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

require 'rails_helper'

describe "Site Accessibility", :js do
it "web root page is a11y compliant" do
describe "A11y", :js do
it "web root page is accessible" do
visit "/"

expect(page).to(be_axe_clean)
end

it "dashboard index page is a11y compliant" do
it "dashboard index page is accessible" do
visit dashboard_path

expect(page).to(be_axe_clean)
Expand Down

0 comments on commit 2c4cc6b

Please sign in to comment.