soa - Stubbing ActiveResource in development with Rails -


we in process of splitting our monolithic rails app multiple rails apps , using activeresource pull data 1 app another. in development massive pain have run 2 rails apps locally in order develop on 1 on them. worse split out more apps.

does have solution on how stub or create dummy version of external apps don't have run every app develop on one? thinking of dummy rack app or that.

try fakeweb gem. helper faking web requests in ruby. works @ global level, without modifying code or writing extensive stubs.

you like

fakeweb.register_uri(:get, %r|products.xml|, :body => file.read("<xml_file>")) 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -