Permalink
Browse files

getting the test suite ready to rock

  • Loading branch information...
1 parent 712e546 commit 4e2e2aa87a5f28ab8d4a68019cf59eb5288405bd @justinfrench committed Sep 15, 2009
Showing with 20 additions and 18 deletions.
  1. +1 −4 Rakefile
  2. +0 −4 tasks/publicious.rake
  3. +9 −0 test/publicious_controller_test.rb
  4. +0 −8 test/publicious_test.rb
  5. +10 −2 test/test_helper.rb
View
@@ -7,10 +7,7 @@ task :default => :test
desc 'Test the Publicious plugin.'
Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
+ t.pattern = 'test/*_test.rb'
end
desc 'Generate documentation for the Publicious plugin.'
View
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :publicious do
-# # Task goes here
-# end
@@ -0,0 +1,9 @@
+require File.dirname(__FILE__) + '/test_helper'
+
+class PubliciousControllerTest < ActionController::TestCase
+ tests PubliciousController
+
+ test "the truth" do
+ assert_equal true, true
+ end
+end
View
@@ -1,8 +0,0 @@
-require 'test_helper'
-
-class PubliciousTest < ActiveSupport::TestCase
- # Replace this with your real tests.
- test "the truth" do
- assert true
- end
-end
View
@@ -1,3 +1,11 @@
+require 'test/unit'
require 'rubygems'
-require 'active_support'
-require 'active_support/test_case'
+require 'action_controller'
+require 'action_controller/test_case'
+require 'action_controller/test_process'
+
+
+class ApplicationController < ActionController::Base
+end
+
+require File.dirname(__FILE__) + '/../app/controllers/publicious_controller'

0 comments on commit 4e2e2aa

Please sign in to comment.