search for: testunitstuff

Displaying 1 result from an estimated 1 matches for "testunitstuff".

2010 Aug 29
0
Troll - A Rails plugin for making webservice mocking easier
...ack. Give us a break, at times we WANT an actual webservice call made, that makes debugging easier. 5. The most recent mock should be applied first. An example to make things clearer: Including the Module in ActiveSupport::TestCase (test_helper.rb), class ActiveSupport::TestCase include Troll::TestUnitStuff end and setup block of your tests: http_mock(:post, "/articles.xml",{:times => 1,:body => /frodo/},{:body => fixture_file(''article_1.xml''), :status => 201}) More can be found in test directory of plugin and README. Gotchas: 1. Works only with Test/Unit c...