Calvin Yu
12p5 comments posted · 175 followers · following 5
16 years ago @ Don't Forget to P... - Don’t Forget to ... · 1 reply · +1 points
17 years ago @ Don't Forget to P... - Don’t Forget to ... · 0 replies · +1 points
I added a testing task to the beast_plugins plugin (vendor/plugins/beast_plugins/tasks/testing.rake):
namespace :test do
Rake::TestTask.new(:beast_plugins => :environment) do |t|
t.libs << "test"
if ENV['PLUGIN']
t.pattern = "vendor/beast/#{ENV['PLUGIN']}/test/**/*_test.rb"
else
t.pattern = 'vendor/beast/*/**/test/**/*_test.rb'
end
t.verbose = true
end
Rake::Task['test:beast_plugins'].comment = "Run the Beast plugin tests in vendor/beast/*/**/test (or specify with PLUGIN=name)"
end
I then put my tests under the test/unit and test/functional directories under the individual plugin directories. You'll have to change the paths to point to test_helper:
require File.dirname(__FILE__) + '/../../../../../test/test_helper'
Not pretty for sure.
17 years ago @ Don't Forget to P... - Don’t Forget to ... · 0 replies · +1 points
I apologize for not responding to this sooner -- Intense Debate's notifications have been going automatically to spam, doh!
I've see this happen before with newer versions of Rails. Have you tried this?:
::Dispatcher.send :prepare_application
(there's two colon's before Dispatcher)
17 years ago @ Don't Forget to P... - Don’t Forget to ... · 0 replies · +1 points
17 years ago @ Don't Forget to P... - Don’t Forget to ... · 3 replies · +2 points
The comment styling for my WP theme looks like butt. Need to fix.