Module: NeuromancerSpec
- Defined in:
- lib/neuromancer-indexer/rspec.rb
Class Method Summary collapse
Class Method Details
.stub ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/neuromancer-indexer/rspec.rb', line 4 def self.stub sqs = Aws::SQS::Client.new( region: 'eu-central-1', stub_responses: true ) client = Neuromancer::Indexer::Client.new(sqs) Neuromancer::Indexer.instance_variable_set('@client', client) end |
.unstub ⇒ Object
13 14 15 16 |
# File 'lib/neuromancer-indexer/rspec.rb', line 13 def self.unstub client = Neuromancer::Indexer::Client.new Neuromancer::Indexer.instance_variable_set('@client', client) end |