Sha256: 44f07610d4dcda93bc0adcb014ce5698c5809ac0152dd6f1fd43e64bf53b96fb

Contents?: true

Size: 302 Bytes

Versions: 38

Compression:

Stored size: 302 Bytes

Contents

module FakeJsonHelper
  def fake_json(method, path, file_path, options = {})
    FakeWeb.register_uri(
      method,
      File.join(FbGraph::ROOT_URL, path),
      options.merge(
        :body => File.read(File.join(File.dirname(__FILE__), '../fake_json', "#{file_path}.json"))
      )
    )
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fb_graph-1.2.2 spec/helpers/fake_json_helper.rb
fb_graph-1.2.1 spec/helpers/fake_json_helper.rb
fb_graph-1.2.0 spec/helpers/fake_json_helper.rb
fb_graph-1.1.7 spec/helpers/fake_json_helper.rb
fb_graph-1.1.6 spec/helpers/fake_json_helper.rb
fb_graph-1.1.5 spec/helpers/fake_json_helper.rb
fb_graph-1.1.4 spec/helpers/fake_json_helper.rb
fb_graph-1.1.3 spec/helpers/fake_json_helper.rb
fb_graph-1.1.2 spec/helpers/fake_json_helper.rb
fb_graph-1.1.1 spec/helpers/fake_json_helper.rb
fb_graph-1.1.0 spec/helpers/fake_json_helper.rb
fb_graph-1.0.7 spec/helpers/fake_json_helper.rb
fb_graph-1.0.6 spec/helpers/fake_json_helper.rb
fb_graph-1.0.5 spec/helpers/fake_json_helper.rb
palidanx-fb_graph-1.0.4 spec/helpers/fake_json_helper.rb
fb_graph-1.0.4 spec/helpers/fake_json_helper.rb
fb_graph-1.0.3 spec/helpers/fake_json_helper.rb
fb_graph-1.0.2 spec/helpers/fake_json_helper.rb
fb_graph-1.0.1 spec/helpers/fake_json_helper.rb
fb_graph-1.0.0 spec/helpers/fake_json_helper.rb