Sha256: de773451c34f8e6fc897dda5e3837d5faa429bcb9318cfda21a1c48acdb6fc91

Contents?: true

Size: 783 Bytes

Versions: 11

Compression:

Stored size: 783 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
markdown_preview-0.1.7 test/test_helper.rb
markdown_preview-0.1.6 test/test_helper.rb
markdown_preview-0.1.5 test/test_helper.rb
markdown_preview-0.1.4 test/test_helper.rb
markdown_preview-0.1.3 test/test_helper.rb
markdown_preview-0.1.2 test/test_helper.rb
runtastic-tiny_mce-0.1.5 test/test_helper.rb
runtastic-tiny_mce-0.1.5.pre test/test_helper.rb
tiny_mce-0.1.4 test/test_helper.rb
tiny_mce-0.1.3 test/test_helper.rb
tiny_mce-0.1.2 test/test_helper.rb