Skip to content

Commit

Permalink
Fixed rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
SleekMutt committed Nov 26, 2024
1 parent c15edd1 commit 6a64262
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/features/visit_login_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
describe "visit Login page", js: true do
let(:user) { create(:user) }
let(:calculator) { create(:calculator) }

include_context :show_constructor

it "when sign in with correct login and password" do
Expand Down
1 change: 1 addition & 0 deletions spec/requests/calculators_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

RSpec.describe CalculatorsController, type: :request do
let(:calculator) { create(:calculator) }

include_context :show_constructor

describe "GET #index" do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/shared/context/feature_flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
FeatureFlag.find_or_create_by!(name: "show_calculators_list")
Flipper.disable(:show_calculators_list)
end
end
end

RSpec.shared_context :show_constructor do
before do
Expand Down

0 comments on commit 6a64262

Please sign in to comment.