Skip to content

Instantly share code, notes, and snippets.

View SweeD's full-sized avatar

Markus Schwed SweeD

View GitHub Profile
@SweeD
SweeD / get_posts_example
Created April 27, 2011 15:12
GET /posts response example
<posts>
<post>
<attr></attr>
<comments>
<comment> ... </comment>
...
</comments>
</post>
</posts>
# 1. ================
# Could work (never tried)
Rails.application.routes.draw do
load 'routes/admin' # file includes just the routes
load 'routes/crm' # file includes just the routes
resources :customer
require 'rspec/mocks'
class ClassForMocking
end
RSpec::Mocks::setup(ClassForMocking)