Prepare for TDD (suite).

This commit is contained in:
Glenn Y. Rolland 2014-09-24 20:10:12 +02:00
parent 2c4a1c0654
commit 40f6a33505
3 changed files with 33 additions and 1 deletions

View file

@ -1,2 +1,12 @@
require "bundler/gem_tasks"
require 'rake'
require "bundler/gem_tasks"
require 'rake/testtask'
Rake::TestTask.new do |t|
t.warning = true
t.verbose = true
t.libs << "spec"
t.test_files = FileList['spec/**/*_spec.rb']
end
task :default => :test

10
specs/author_list_spec.rb Normal file
View file

@ -0,0 +1,10 @@
require_relative 'spec_helper'
require 'minitest/spec'
describe "simple failing test" do
it "fails" do
assert 1 < 0
end
end

12
specs/spec_helper.rb Executable file
View file

@ -0,0 +1,12 @@
require 'mark'
require 'minitest/unit'
require 'minitest/autorun'
require 'minitest/pride'
#if __FILE__ == $0
# $LOAD_PATH.unshift('lib', 'spec')
# Dir.glob('./spec/**/*_spec.rb') { |f| require f }
#end