Skip to content

Commit f996a80

Browse files
committed
separate test from src
1 parent 6b545e0 commit f996a80

14 files changed

+19
-7
lines changed

Gemfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ gem 'activesupport', '>= 3.1.0'
44
gem 'sinatra', '>= 1.2.6'
55
gem 'mechanize', '>= 2.0.1'
66
gem 'highline', '>= 1.6.2'
7-
gem 'i18n', '>= 0.0.4'
7+
gem 'i18n', '>= 0.0.4'
8+
9+
group :development do
10+
gem 'minitest', '>= 0'
11+
gem 'bundler', '~> 1.0.0'
12+
gem 'grasshopper', '>= 0.0.1'
13+
end

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ GEM
33
specs:
44
activesupport (3.1.0)
55
multi_json (~> 1.0)
6+
grasshopper (0.0.1)
67
highline (1.6.2)
78
i18n (0.6.0)
89
mechanize (2.0.1)
910
net-http-digest_auth (~> 1.1, >= 1.1.1)
1011
net-http-persistent (~> 1.8)
1112
nokogiri (~> 1.4)
1213
webrobots (~> 0.0, >= 0.0.9)
14+
minitest (2.5.1)
1315
multi_json (1.0.3)
1416
net-http-digest_auth (1.1.1)
1517
net-http-persistent (1.9)
@@ -27,7 +29,10 @@ PLATFORMS
2729

2830
DEPENDENCIES
2931
activesupport (>= 3.1.0)
32+
bundler (~> 1.0.0)
33+
grasshopper (>= 0.0.1)
3034
highline (>= 1.6.2)
3135
i18n (>= 0.0.4)
3236
mechanize (>= 2.0.1)
37+
minitest
3338
sinatra (>= 1.2.6)

Rakefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require 'rake'
22
require 'rake/testtask'
3-
4-
Rake::TestTask.new do |t|
5-
t.libs << "test"
6-
t.libs << "."
7-
t.test_files = FileList['*_test.rb']
8-
t.verbose = true
3+
Rake::TestTask.new(:test) do |test|
4+
test.libs << 'src' << 'test'
5+
test.pattern = 'test/**/*_test.rb'
6+
test.verbose = true
97
end
8+
9+
task :default => :test

joes.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby -Isrc src/web.rb

fund.rb src/fund.rb

File renamed without changes.
File renamed without changes.

investments.rb src/investments.rb

File renamed without changes.

scrape.rb src/scrape.rb

File renamed without changes.

util.rb src/util.rb

File renamed without changes.

web.rb src/web.rb

File renamed without changes.

fund_test.rb test/fund_test.rb

File renamed without changes.
File renamed without changes.
File renamed without changes.

util_test.rb test/util_test.rb

File renamed without changes.

0 commit comments

Comments
 (0)