Sha256: 43112aecc610376cc6b21031485157caebd6b4f1de1497b2185015ff854e3315

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 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
    action = 'hello_world'
    args = ['hello', 'world']
    action_d, args_d = Hara.decode_msg Hara.encode_msg(action, *args)
    action.should == action_d
    args.should == args_d
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hara-0.3.0 spec/hara_spec.rb