Sha256: 3d02c87d3bbd9d22812b9bd7abafcff3a51c5eec259e2ad6c2df053086c89c79

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

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

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

3 entries across 3 versions & 1 rubygems

Version Path
fbgraph-0.1.6.4.1 specs/spec_helper.rb
fbgraph-0.1.6.4 specs/spec_helper.rb
fbgraph-0.1.6.3 specs/spec_helper.rb