Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fix dotenv for testing
  • Loading branch information
citin committed Sep 6, 2024
commit 8c70b3fc8ecf5eaf84cc1b3ff1cb134316e7e05a
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ group :test do
gem 'vcr'
gem 'webmock'
end

gem 'dotenv', groups: [:development, :test]
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ PLATFORMS
DEPENDENCIES
beyond_api!
bundler (~> 2.0)
dotenv (~> 2.7)
dotenv
factory_bot
faker (~> 2.2)
jwt
Expand Down
1 change: 0 additions & 1 deletion beyond_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.3'

spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'dotenv', '~> 2.7'
spec.add_development_dependency 'faker', '~> 2.2'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
Expand Down
5 changes: 2 additions & 3 deletions spec/beyond_api/services/authentication/email_address_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
let(:new_email) { '[email protected]' }

describe '#trigger_change' do
it 'change email address' do
# client.trigger_change(user_id, 'en-US', user_password, new_email)
end
# client.trigger_change(user_id, 'en-US', user_password, new_email)
it 'change email address'

after do
# # Rollback email address change
Expand Down
36 changes: 16 additions & 20 deletions spec/beyond_api/services/authentication/user_and_password_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@
describe '#verify_password' do
let(:new_password) { 'ValidPassword123' }

it 'sends a post request with the correct parameters' do
# client.verify_password('merchant', new_password)
end
# client.verify_password('merchant', new_password)
it 'sends a post request with the correct parameters'
end

describe '#change_password' do
let(:new_password) { 'ValidPassword123' }

it 'sends a post request with the correct parameters' do
# client.change_password(
# user_id,
# user_password,
# new_password
# )
end
# client.change_password(
# user_id,
# user_password,
# new_password
# )
it 'sends a post request with the correct parameters'

after do
# # Rollback the password change
Expand All @@ -38,21 +36,19 @@
end

describe '#password_reset_email' do
it 'sends a post request with the correct parameters' do
# client.password_reset_email(user_email)
end
# client.password_reset_email(user_email)
it 'sends a post request with the correct parameters'
end

describe '#change_username' do
let(:new_name) { 'test-user' }

it 'sends a post request with the correct parameters' do
# client.change_username(
# user_id,
# user_password,
# new_name
# )
end
# client.change_username(
# user_id,
# user_password,
# new_name
# )
it 'sends a post request with the correct parameters'

after do
# # Rollback the username change
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
require 'beyond_api'
require 'factory_bot'

Dotenv.load('.env.test')

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
Expand Down