Sha256: db3fc91c61ddaf7f85a287269013566b8dfba886e9e7edec734c0225861dee35

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'

describe Hara do
  it 'Hara::Application should equal with App' do
    App = Class.new do
      include Hara::App
    end
    App.should == Hara::Application
  end

  it 'Hara.encode_msg & decode_msg should work' do
    msg = {'action' => 'hello_world', 'args' => ['hello', 'world']}
    Hara.decode_msg(Hara.encode_msg msg).should == msg
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hara-0.4.0 spec/hara_spec.rb