Sha256: 141cf6b3b749a9c58d8fbedf8be4f04d0b361d3227595831ef76c4525548e0c8

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 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.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.2.0 spec/hara_spec.rb