Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0c4a9e01f
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (14 sloc) 0.379 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
describe "The requests stuff" do
  it "should parse json" do
    ran = false
    RemoteModule::RemoteModel.get("http://graph.facebook.com/btaylor") do |response, json|
      json.class.should == Hash
      response.ok?.should == true
      ran = true
    end
    # really stupid, haven't made an async request example...
    wait 5.0 do
      ran.should == true
    end
  end
end
Something went wrong with that request. Please try again.