FakeWeb
Posted by Kevin McKelvin on September 20, 2011 in Ruby, TestingI was testing a client I wrote to a server API recently. Being relatively new to testing with RSpec and Ruby, I initially took the naive approach of building a node.js application to behave as a dummy test server.Originally when I wrote the code I knew there had to be a better way, but I only found that better way today.I was revisiting some of that code and discovered FakeWeb. It's a Ruby framework that makes it simple to test code that involves HTTP requests. It intercepts HTTP calls made through Net::HTTP and makes it dead simple to create predictable responses for
Continue ReadingLeave a Comment

