• Total Comments: 5
Last 5 comments by Calvin Yu
Can you explain what you mean by using additional Rails plugins? I think it should work if you do it after the Beast Plugin has been initialized.
  • 50 weeks ago
I've started adding some tests to my plugins, and here's what I've done so far:

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.
  • 52 weeks ago
Hi Jason,

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)
  • 52 weeks ago
Great! That way I won't have to style my old comments :)
  • 60 weeks ago
Intense Debate doesn't seem to touch any of my older posts that has comments. I guess that makes sense.

The comment styling for my WP theme looks like butt. Need to fix.
  • 60 weeks ago

Recent profile visitors

  • Follow this user
  • Follow this user
  • Follow this user
  • Follow this user

Following

  • Follow this user
  • Follow this user
  • Follow this user
  • Follow this user
  • Follow this user