Skip to content

Commit

Permalink
Fix Rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
seand7565 committed Feb 5, 2021
1 parent f477bed commit 8fdbea9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ RSpec/VerifiedDoubles:
# Sometimes you really need an "anything" double
IgnoreSymbolicNames: true

Rspec/Naming/VariableNumber:
# PayPal uses snake_case, we use normal_case ¯\_(ツ)_/¯
Enabled: false

Style/FrozenStringLiteralComment:
Exclude:
- spec/**/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

get solidus_paypal_commerce_platform.verify_total_path, params: params

expect(response).to have_http_status(200)
expect(response).to have_http_status(:ok)
end
end

Expand All @@ -29,7 +29,7 @@

get solidus_paypal_commerce_platform.verify_total_path, params: params

expect(response).to have_http_status(400)
expect(response).to have_http_status(:bad_request)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

expect(payment_method.preferred_client_id).to eq("CLIENT-ID")
expect(payment_method.preferred_client_secret).to eq("CLIENT-SECRET")
expect(response).to have_http_status(201)
expect(response).to have_http_status(:created)
end
end
end

0 comments on commit 8fdbea9

Please sign in to comment.