Calvin Yu
- Rep: 12pWhat's this?
Recent profile visitors
projectloveme
- Rep: 0pWhat's this?
matu
- Rep: 12pWhat's this?
AriesHungary
- Rep: 1pWhat's this?
D. Advocate
- Rep: 79pWhat's this?
Andrew Hyde
- Rep: 61pWhat's this?
- Blog: Andrew Hyde
- |
- Blog RSS
- Following 5 people total
- |
- View all
Following
aurelian
- Rep: 1pWhat's this?
micah
- Rep: 54pWhat's this?
- Blog: Learn to Duck
- |
- Blog RSS
Andrew Hyde
- Rep: 61pWhat's this?
- Blog: Andrew Hyde
- |
- Blog RSS
politicalgrind
- Rep: 60pWhat's this?
- Blog: Political Grind
- |
- Blog RSS
josh
- Rep: 75pWhat's this?

Last 5 comments by Calvin Yu
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.
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)
The comment styling for my WP theme looks like butt. Need to fix.