Skip to content

Commit

Permalink
All ways of running tests now work.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Sep 18, 2008
1 parent 42fede3 commit b9d513e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ task :default => :test
desc 'Test the grouped_scope plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
Expand Down
2 changes: 1 addition & 1 deletion test/grouped_scope_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper'
require 'helper'

class GroupedScopeTest < Test::Unit::TestCase

Expand Down
6 changes: 5 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
require 'rubygems'
require 'shoulda'
require 'mocha'
require 'test/boot' unless defined?(ActiveRecord)
require 'boot' unless defined?(ActiveRecord)
require 'activerecord'
require 'active_support'

$: << File.join(File.dirname(__FILE__), '..', 'lib')
$: << File.join(File.dirname(__FILE__), '..', 'lib', 'grouped_scope')

require 'grouped_scope'

ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__)+'/debug.log')
Expand Down

0 comments on commit b9d513e

Please sign in to comment.