Skip to content

Commit

Permalink
update method calls to keep up with Faker api changes
Browse files Browse the repository at this point in the history
positional arguments have been replaced with keyword arguments with Faker 2.x:
https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md#important-note
  • Loading branch information
fursich committed Jan 30, 2021
1 parent 91668b8 commit b14f0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/integration/lib/auth0/api/v2/api_jobs_spec.rb
Expand Up @@ -4,7 +4,7 @@

let(:client) { Auth0Client.new(v2_creds) }
let(:username) { Faker::Internet.user_name }
let(:email) { "#{entity_suffix}#{Faker::Internet.safe_email(username)}" }
let(:email) { "#{entity_suffix}#{Faker::Internet.safe_email(name: username)}" }
let(:connection_id) do
VCR.use_cassette('Auth0_Api_V2_Jobs/search_for_connection_id') do
client.connections.find do |connection|
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/lib/auth0/api/v2/api_user_blocks_spec.rb
Expand Up @@ -6,7 +6,7 @@
before(:all) do
@client = Auth0Client.new(v2_creds)
username = Faker::Internet.user_name
@email = "#{entity_suffix}#{Faker::Internet.safe_email(username)}"
@email = "#{entity_suffix}#{Faker::Internet.safe_email(name: username)}"
password = Faker::Internet.password
@user = client.create_user(username, 'email' => email,
'password' => password,
Expand Down

0 comments on commit b14f0fb

Please sign in to comment.