Class: RubyRabbitmqJanus::Janus::Transactions::RSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/rrj/janus/transactions/rspec.rb

Overview

Transaction for RSpec initializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRSpec

Initialize fake object



11
12
13
# File 'lib/rrj/janus/transactions/rspec.rb', line 11

def initialize
  @response = nil
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/rrj/janus/transactions/rspec.rb', line 8

def response
  @response
end

Instance Method Details

#connectObject

Fake method



16
# File 'lib/rrj/janus/transactions/rspec.rb', line 16

def connect; end

#detachObject

Fake method



19
# File 'lib/rrj/janus/transactions/rspec.rb', line 19

def detach; end

#detach_for_deletingObject

Fake method



22
# File 'lib/rrj/janus/transactions/rspec.rb', line 22

def detach_for_deleting; end

#publish_message(type, _options) ⇒ Object

Publish fake message



25
26
27
# File 'lib/rrj/janus/transactions/rspec.rb', line 25

def publish_message(type, _options)
  @response = Janus::Responses::RSpec.new(type)
end