Bootstrap Minitest

This commit is contained in:
Hakan Ensari 2012-11-21 00:04:15 +00:00
parent 9fb80af83e
commit db37382765
4 changed files with 18 additions and 0 deletions

View File

@ -6,3 +6,7 @@ gem 'sequel'
gem 'sinatra-jsonp'
gem 'unicorn'
gem 'yajl-ruby', require: 'yajl'
group :test do
gem 'rack-test'
end

View File

@ -10,6 +10,8 @@ GEM
rack (1.4.1)
rack-protection (1.2.0)
rack
rack-test (0.6.2)
rack (>= 1.0)
raindrops (0.10.0)
sequel (3.41.0)
sinatra (1.3.3)
@ -32,6 +34,7 @@ PLATFORMS
DEPENDENCIES
fixer
pg
rack-test
sequel
sinatra-jsonp
unicorn

View File

@ -1,5 +1,6 @@
require_relative 'lib/db'
require 'fixer'
require 'rake/testtask'
task :reset do
data = Fixer::Feed.new(:historical).to_a
@ -13,3 +14,11 @@ task :update do
Currency.find_or_create hsh
end
end
Rake::TestTask.new do |t|
t.libs.push 'lib'
t.test_files = FileList['spec/*_spec.rb']
t.verbose = true
end
task :default => [:test]

2
spec/helper.rb Normal file
View File

@ -0,0 +1,2 @@
require 'minitest/autorun'
require 'minitest/pride'