From 6dd507672bc055a7f0c46dd9ddee84e286aa0d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Amo=C3=AAdo?= Date: Tue, 18 Apr 2017 16:14:20 -0300 Subject: [PATCH] Create test for Rack::Handler module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucas Amoêdo Signed-off-by: Marcelo Oliveira --- spec/lib/core_extensions/rack/handler_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/lib/core_extensions/rack/handler_spec.rb diff --git a/spec/lib/core_extensions/rack/handler_spec.rb b/spec/lib/core_extensions/rack/handler_spec.rb new file mode 100644 index 00000000..d2fcdd15 --- /dev/null +++ b/spec/lib/core_extensions/rack/handler_spec.rb @@ -0,0 +1,12 @@ +require 'rails_helper' +require "#{Rails.root}/lib/core_extensions/rack/handler" + +RSpec.describe Rack::Handler do + + describe 'default webserver' do + it 'should be puma' do + argument = 'argument' + expect(Rack::Handler.default argument).to eq(Rack::Handler::Puma) + end + end +end \ No newline at end of file