facebook-stub is a gem for stubbing out the Facebook JavaScript API in acceptance and integration tests.
Change.org
gem "facebook-stub", "~> 0.0.1.18"