Sha256: 12bbf5e8a25afe59d4b8313abd63cdbef8508772252383bc8b9d303a305d6b98

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

$LOAD_PATH << File.expand_path('../../lib', __FILE__)
require 'rubygems'
require 'fbgraph'
require 'redgreen'

def expect_consumer(uri, result = '')
  consumer = @client.consumer[uri]
  consumer.stub!(:get).and_return(Struct.new(:body).new(result))
  @client.consumer.stub!(:[]).with(uri).and_return(consumer)  
end

def expect_consumer_post(uri, params = {}, result = '')
  rest_client = @client.consumer[uri]
  rest_client.stub!(:post).with(params).and_return(Struct.new(:body).new(result))
  @client.consumer.stub!(:[]).with(uri).and_return(rest_client)  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fbgraph-1.7.1 specs/spec_helper.rb
fbgraph-1.7.0 specs/spec_helper.rb
fbgraph-1.6.0 specs/spec_helper.rb
fbgraph-1.5.4 specs/spec_helper.rb
fbgraph-1.5.2 specs/spec_helper.rb