Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small test suite clean.

  • Loading branch information...
commit 9bfd45a5240caa3198a23707ba75cb3bdbc12c71 1 parent db98bd0
Daz Oakley authored
Showing with 11 additions and 13 deletions.
  1. +10 −12 tasks/shoulda.rake
  2. +1 −1  test/test_biomart.rb
View
22 tasks/shoulda.rake
@@ -1,15 +1,13 @@
begin
- require 'shoulda'
-rescue LoadError
- require 'rubygems' unless ENV['NO_RUBYGEMS']
- require 'shoulda'
-end
+ require "shoulda"
+ require "rake/testtask"
-require 'rake/testtask'
-
-desc "Run the shoulda test under /spec"
-Rake::TestTask.new do |t|
- t.libs << "test"
- t.test_files = FileList['spec/*_spec.rb']
- t.verbose = true
+ desc "Run the test suite under /test"
+ Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList["test/test*.rb"]
+ t.verbose = true
+ end
+rescue LoadError
+ puts "[ERROR] Unable to load 'test' task - please install shoulda"
end
View
2  test/test_biomart.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
+require 'test_helper'
class BiomartTest < Test::Unit::TestCase
def setup
Please sign in to comment.
Something went wrong with that request. Please try again.