Created
March 16, 2009 01:19
-
-
Save dchelimsky/79624 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Admin::BaseController do | |
subject do | |
klass = Class.new(Admin::BaseController) {def index; end} | |
self.class.const_set(generate_name, klass) | |
klass.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment