Skip to content

Commit

Permalink
Update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Mar 17, 2023
1 parent a53de88 commit 4151118
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rack-cors.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'minitest', '~> 5.11.0'
spec.add_development_dependency 'mocha', '~> 1.6.0'
spec.add_development_dependency 'pry', '~> 0.12'
spec.add_development_dependency 'rack-test', '~> 1.1.0'
spec.add_development_dependency 'rack-test', '>= 1.1.0'
spec.add_development_dependency 'rake', '~> 12.3.0'
spec.add_development_dependency 'rubocop', '~> 0.80.1'
end
8 changes: 4 additions & 4 deletions test/unit/cors_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def load_app(name, options = {})
use FakeProxy if options[:proxy]
map('/') do
run(lambda do |_env|
[200, { 'Content-Type' => 'text/html' }, ['success']]
[200, { 'content-type' => 'text/html' }, ['success']]
end)
end
end
Expand Down Expand Up @@ -428,7 +428,7 @@ def app
@app ||= Rack::Builder.new do
use Rack::Cors
use Rack::Lint
run ->(_env) { [200, { 'Content-Type' => 'text/html' }, ['hello']] }
run ->(_env) { [200, { 'content-type' => 'text/html' }, ['hello']] }
end
end

Expand Down Expand Up @@ -474,7 +474,7 @@ def app
end
end
map('/') do
run ->(_env) { [200, { 'Content-Type' => 'text/html' }, ['hello']] }
run ->(_env) { [200, { 'content-type' => 'text/html' }, ['hello']] }
end
end
end
Expand All @@ -495,7 +495,7 @@ def app
end
end
map('/') do
run ->(_env) { [200, { 'Content-Type' => 'text/html' }, ['hello']] }
run ->(_env) { [200, { 'content-type' => 'text/html' }, ['hello']] }
end
end
end
Expand Down

0 comments on commit 4151118

Please sign in to comment.