Skip to content

Commit

Permalink
update spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyxd committed Nov 21, 2023
1 parent 64408f6 commit b3e4189
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
require "grpc_mock/rspec"
require "rack"

require "aserto"
require "google/protobuf/well_known_types"
require_relative "integration/topaz"

require "simplecov"
SimpleCov.start do
enable_coverage :branch
Expand All @@ -28,11 +24,15 @@

# integration tests setup
config.before(:all, type: :integration) do
require_relative "integration/topaz"

GrpcMock.allow_net_connect!
Topaz.run
end

config.after(:all, type: :integration) do
require_relative "integration/topaz"

GrpcMock.disable_net_connect!
Topaz.cleanup
end
Expand All @@ -43,6 +43,7 @@
end

# configure Aserto
require "aserto"
Aserto.configure do |config|
config.policy_name = "peoplefinder"
config.authorizer_api_key = "123456"
Expand Down

0 comments on commit b3e4189

Please sign in to comment.