Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAugustoRamalhoDuarte committed Dec 29, 2024
1 parent 171e45d commit cd4d9f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/rest_api_generator/resource_params.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module RestApiGenerator
module ResourceParams
extend ActiveSupport::Concern
Expand Down Expand Up @@ -33,4 +35,4 @@ def resource_attributes
end
end
end
end
end
2 changes: 1 addition & 1 deletion spec/lib/rest_api_generator/resource_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
context "when params are invalid" do
it "returns http unprocessable entity" do
post "/transactions", params: { transaction: { amount: nil } }
expect(response).to have_http_status(422)
expect(response).to have_http_status(:unprocessable_content)
end
end
end
Expand Down

0 comments on commit cd4d9f3

Please sign in to comment.