Skip to content

Commit

Permalink
update ruby versions, fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Jul 24, 2020
1 parent 6f7a1ae commit ba6ee52
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Expand Up @@ -2,9 +2,10 @@ services:
- mongodb
language: ruby
rvm:
- 2.2.5
- 2.3.1
- 2.4.1
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.1
env:
global:
- RUBYOPT=-W1
Expand Down
3 changes: 3 additions & 0 deletions Rakefile
Expand Up @@ -7,16 +7,19 @@ namespace :test do

Rake::TestTask.new(:unit) do |t|
t.libs << 'test'
t.warning = false
t.pattern = Dir.glob('test/unit/*_test.rb')
end

Rake::TestTask.new(:integration) do |t|
t.libs << 'test'
t.warning = false
t.pattern = Dir.glob('test/integration/*_test.rb')
end

Rake::TestTask.new(:performance) do |t|
t.libs << 'test'
t.warning = false
t.pattern = Dir.glob('test/performance/*_test.rb')
end

Expand Down
4 changes: 3 additions & 1 deletion test/unit/handler_test.rb
Expand Up @@ -21,7 +21,9 @@ def setup

def test_should_instantiate_controller_and_call_corresponding_method
status, headers, body = @handler.call env_for(:get, '/')
assert_equal 'GET', body.body.join
body_str = ''
body.each{|s| body_str << s}
assert_equal 'GET', body_str
assert_equal '3', headers['Content-Length']
assert_equal 200, status
end
Expand Down

0 comments on commit ba6ee52

Please sign in to comment.