Prepare for TDD (suite).
This commit is contained in:
parent
2c4a1c0654
commit
40f6a33505
3 changed files with 33 additions and 1 deletions
12
Rakefile
12
Rakefile
|
@ -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
10
specs/author_list_spec.rb
Normal 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
12
specs/spec_helper.rb
Executable 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
|
||||
|
||||
|
Loading…
Reference in a new issue