Displaying 1 result from an estimated 1 matches for "actsastriptest".
2008 Dec 03
5
How to test a plugin
..., is it right to say that I should only put my unit tests (but not
functional test for example) for the plugin in the plugin test folder?
<code for acts_as_fox_test.rb>
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
re...