search for: plugin_test_dir

Displaying 1 result from an estimated 1 matches for "plugin_test_dir".

2008 Dec 03
5
How to test a plugin
...> require File.join(File.dirname(__FILE__), ''test_helper'') require ''test/unit'' class ActsAsTripTest < Test::Unit::TestCase # Replace this with your real tests. def test_this_plugin flunk end end </code> <code for test_helper.rb> plugin_test_dir = File.dirname(__FILE__) require File.join(plugin_test_dir, ''/test_helper'') # Load the Rails environment require File.join(plugin_test_dir, ''../../../../config/environment'') require ''active_record/fixtures'' # Load up out database & create...