Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo/misspell in comments & error messages #718

Merged
merged 1 commit into from
Dec 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/stripe/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def legal_entity
end

def legal_entity=(_)
raise NoMethodError, 'Overridding legal_entity can cause serious issues. Instead, set the individual fields of legal_entity like blah.legal_entity.first_name = \'Blah\''
raise NoMethodError, 'Overriding legal_entity can cause serious issues. Instead, set the individual fields of legal_entity like blah.legal_entity.first_name = \'Blah\''
end

def deauthorize(client_id = nil, opts = {})
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/stripe_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def general_api_error(status, body)
end

# Formats a plugin "app info" hash into a string that we can tack onto the
# end of a User-Agent string where it'll be fairly prominant in places like
# end of a User-Agent string where it'll be fairly prominent in places like
# the Dashboard. Note that this formatting has been implemented to match
# other libraries, and shouldn't be changed without universal consensus.
def format_app_info(info)
Expand Down
4 changes: 2 additions & 2 deletions test/stripe/stripe_object_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ class WithAdditiveObjectParam < Stripe::StripeObject

should "#to_s will call to_s for all embedded stripe objects" do
obj = Stripe::StripeObject.construct_from(id: "id",
# embeded list object
# embedded list object
refunds: Stripe::ListObject.construct_from(data: [
# embedded object in list
Stripe::StripeObject.construct_from(id: "id",
# embedded object in an object in a list object
metadata: Stripe::StripeObject.construct_from(foo: "bar")),
]),
# embeded stripe object
# embedded stripe object
metadata: Stripe::StripeObject.construct_from(foo: "bar"))
expected = JSON.pretty_generate(id: "id",
refunds: {
Expand Down