Skip to content

Commit

Permalink
Fix test harness. Don't depend on rubygems: let the Rakefile take car…
Browse files Browse the repository at this point in the history
…e of it
  • Loading branch information
packagethief committed Jan 6, 2010
1 parent 31a080f commit 184e1ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -7,7 +7,7 @@ task :default => :test

desc 'Test the open_id_authentication plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.ruby_opts << '-rubygems'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
Expand Down
18 changes: 6 additions & 12 deletions test/test_helper.rb
@@ -1,17 +1,11 @@
RAILS_ROOT = File.dirname(__FILE__) unless defined? RAILS_ROOT

require 'test/unit'
require 'rubygems'
require 'mocha'

gem 'activesupport'
require 'active_support'

gem 'actionpack'
require 'active_record'
require 'action_controller'
require 'initializer' # for Rails.root

gem 'mocha'
require 'mocha'

gem 'ruby-openid'
require 'openid'

RAILS_ROOT = File.dirname(__FILE__) unless defined? RAILS_ROOT
require File.dirname(__FILE__) + "/../lib/open_id_authentication"
require 'open_id_authentication'

0 comments on commit 184e1ad

Please sign in to comment.