Skip to content

Commit

Permalink
Add VCR to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Oct 9, 2018
1 parent d245f69 commit a05c6bc
Show file tree
Hide file tree
Showing 134 changed files with 8,977 additions and 728 deletions.
5 changes: 3 additions & 2 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
BUNDLE_JOBS: '4'
BUNDLE_BIN: bin
BUNDLE_JOBS: "3"
BUNDLE_BIN: "bin"
BUNDLE_RETRY: "3"
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ end

group :test do
gem 'webmock', require: false
gem 'vcr', require: false
end
2 changes: 1 addition & 1 deletion lib/auth0/api/v2/resource_servers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def resource_server(resource_server_id)
# @return [json] Returns the resource server.
def create_resource_server(identifier, options = {})
raise Auth0::InvalidParameter, 'Must supply a valid resource server id' if identifier.to_s.empty?
if ['<', '>'].include?(options.fetch(:name, ''))
if options.fetch(:name, '').index(/[<>]/)
raise Auth0::InvalidParameter, 'Name must contain at least one character. Does not allow "<" or ">"'
end
request_params = Hash[options.map { |(k, v)| [k.to_sym, v] }]
Expand Down
2 changes: 1 addition & 1 deletion lib/auth0/api/v2/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def delete_user(user_id)
# @return [json] Returns the updated user.
def patch_user(user_id, body)
raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid body' if body.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid body' if body.to_s.empty? || body.empty?
path = "#{users_path}/#{user_id}"
patch(path, body)
end
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a05c6bc

Please sign in to comment.