Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.0.2
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (14 sloc) 0.379 kb
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
Jump to Line
Something went wrong with that request. Please try again.