Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getting the test suite ready to rock

  • Loading branch information...
commit 4e2e2aa87a5f28ab8d4a68019cf59eb5288405bd 1 parent 712e546
@justinfrench authored
View
5 Rakefile
@@ -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
4 tasks/publicious.rake
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :publicious do
-# # Task goes here
-# end
View
9 test/publicious_controller_test.rb
@@ -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
8 test/publicious_test.rb
@@ -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
12 test/test_helper.rb
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.