Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d404200031
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 0.774 kb
require File.expand_path(File.dirname(__FILE__) + "/../test/test_helper")
# Use non-default action names to get around possible authentication
# filters to ensure the tests work in most cases
module TinyMCEActions
def new_page
render :text => 'Hello'
end
def edit_page
render :text => 'Hello'
end
def show_page
render :text => 'Hello'
end
end
class TestController
def self.helper(s) s; end
end
def set_constant(constant, value)
if respond_to?(:silence_warnings)
silence_warnings do
Object.send(:remove_const, constant) if Object.const_defined?(constant)
Object.const_set(constant, value)
end
else
Object.send(:remove_const, constant) if Object.const_defined?(constant)
Object.const_set(constant, value)
end
end
Jump to Line
Something went wrong with that request. Please try again.