require 'spec_helper' describe Hara do it 'Hara::Application should equal with App' do App = Class.new Hara::App App.should == Hara::Application end it 'Hara.env should be development' do Hara.env.should == :development end it 'Hara.request_handler should work' do handler = Hara.request_handler handler.class.should == Proc Hara.request_handler do |conn, req| conn + req end Hara.request_handler.call(40, 2).should == 42 Hara.request_handler &handler end end