Sha256: 9ea818cf11d29d86a6068b3794dbd94299b61dce43c507e99f638df7c2d8e957

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hara-0.1.0 spec/hara_spec.rb