Skip to content

Instantly share code, notes, and snippets.

View simonhildebrandt's full-sized avatar
🏠
Working from home

Simon Hildebrandt simonhildebrandt

🏠
Working from home
View GitHub Profile
@deviantbits
deviantbits / gist:3812538
Created October 1, 2012 15:34
Test a module included in a controller with RSpec
require 'spec_helper'
describe MyModule::Name, :type => :controller do
controller(ActionController::Base) do
include MyModule::Name
def index
render nothing: true
end