I am using rails 3 and experimenting with a facebook api chart. I am trying to do something in TDD / BDD, but I'm not sure how to test my calls on api. Am I just wrapping facebook api methods in stubs and returning mock objects?
I ran into a similar problem. I look at https://github.com/mislav/fakeweb as a way to mock http responses. They have not used it for real yet, but based on my preliminary experiments, I think this will work for my purposes. Perhaps this will work for you too.
, . Facebook FQL Graph API, .
http://code.google.com/p/mockfacebook/
Source: https://habr.com/ru/post/1796579/More articles:C ++ cin.getline () fail - c ++Moving through a 2d array in ruby to display it in table format? - ruby | fooobar.comИспользование нескольких тегов "mvc: resources" в spring mvc - spring-mvcHow to use, but not disclose the built-in function in the c99 library? - cJSF2/......registerHostUser.xhtml @9,9 Библиотека тегов поддерживает пространство имен: http://java.sun.com/jsf/html, но для имени не было определено ни одного тега: head - mavenDoes the global configuration class have a bad one? - c #How to draw this tree as a lattice structure in Matlab? - matlabHow to make a closed source for a library written using a template in C ++ - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796583/passing-args-to-a-js-command-line-utility-node-or-narwhal&usg=ALkJrhj2Pa5oasG0JKEbKGYz5WiOS7NE-gsending django signals from django-admin command? - pythonAll Articles