mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-24 20:15:15 +01:00
Bootstrap Minitest
This commit is contained in:
parent
9fb80af83e
commit
db37382765
4
Gemfile
4
Gemfile
@ -6,3 +6,7 @@ gem 'sequel'
|
||||
gem 'sinatra-jsonp'
|
||||
gem 'unicorn'
|
||||
gem 'yajl-ruby', require: 'yajl'
|
||||
|
||||
group :test do
|
||||
gem 'rack-test'
|
||||
end
|
||||
|
@ -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
|
||||
|
9
Rakefile
9
Rakefile
@ -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
2
spec/helper.rb
Normal file
@ -0,0 +1,2 @@
|
||||
require 'minitest/autorun'
|
||||
require 'minitest/pride'
|
Loading…
Reference in New Issue
Block a user