Sha256: 0a05250d420f7a8bd3abcf188c333669774c93b40d3c017fe7bafe4fdfc9b298

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

def stub_jabber_client
  client = stub("Jabber::Client",  :connect => nil, 
                                    :auth => nil,
                                    :send => nil)
  def client.method_missing(*args); end
  Jabber::Client.stub(:new).and_return(client)
  client
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
botfly-0.3.6 spec/support/jabber.rb
botfly-0.3.5 spec/support/jabber.rb
botfly-0.3.4 spec/support/jabber.rb
botfly-0.3.3 spec/support/jabber.rb
botfly-0.3.2 spec/support/jabber.rb